Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EDU>> % question 3.10
- a=(0:0.1:6.2);
- sin(a);
- cos(a);
- tan(a);
- TABLE=[a',sin(a)',cos(a)',tan(a)']
- TABLE =
- 0 0 1.0000 0
- 0.1000 0.0998 0.9950 0.1003
- 0.2000 0.1987 0.9801 0.2027
- 0.3000 0.2955 0.9553 0.3093
- 0.4000 0.3894 0.9211 0.4228
- 0.5000 0.4794 0.8776 0.5463
- 0.6000 0.5646 0.8253 0.6841
- 0.7000 0.6442 0.7648 0.8423
- 0.8000 0.7174 0.6967 1.0296
- 0.9000 0.7833 0.6216 1.2602
- 1.0000 0.8415 0.5403 1.5574
- 1.1000 0.8912 0.4536 1.9648
- 1.2000 0.9320 0.3624 2.5722
- 1.3000 0.9636 0.2675 3.6021
- 1.4000 0.9854 0.1700 5.7979
- 1.5000 0.9975 0.0707 14.1014
- 1.6000 0.9996 -0.0292 -34.2325
- 1.7000 0.9917 -0.1288 -7.6966
- 1.8000 0.9738 -0.2272 -4.2863
- 1.9000 0.9463 -0.3233 -2.9271
- 2.0000 0.9093 -0.4161 -2.1850
- 2.1000 0.8632 -0.5048 -1.7098
- 2.2000 0.8085 -0.5885 -1.3738
- 2.3000 0.7457 -0.6663 -1.1192
- 2.4000 0.6755 -0.7374 -0.9160
- 2.5000 0.5985 -0.8011 -0.7470
- 2.6000 0.5155 -0.8569 -0.6016
- 2.7000 0.4274 -0.9041 -0.4727
- 2.8000 0.3350 -0.9422 -0.3555
- 2.9000 0.2392 -0.9710 -0.2464
- 3.0000 0.1411 -0.9900 -0.1425
- 3.1000 0.0416 -0.9991 -0.0416
- 3.2000 -0.0584 -0.9983 0.0585
- 3.3000 -0.1577 -0.9875 0.1597
- 3.4000 -0.2555 -0.9668 0.2643
- 3.5000 -0.3508 -0.9365 0.3746
- 3.6000 -0.4425 -0.8968 0.4935
- 3.7000 -0.5298 -0.8481 0.6247
- 3.8000 -0.6119 -0.7910 0.7736
- 3.9000 -0.6878 -0.7259 0.9474
- 4.0000 -0.7568 -0.6536 1.1578
- 4.1000 -0.8183 -0.5748 1.4235
- 4.2000 -0.8716 -0.4903 1.7778
- 4.3000 -0.9162 -0.4008 2.2858
- 4.4000 -0.9516 -0.3073 3.0963
- 4.5000 -0.9775 -0.2108 4.6373
- 4.6000 -0.9937 -0.1122 8.8602
- 4.7000 -0.9999 -0.0124 80.7128
- 4.8000 -0.9962 0.0875 -11.3849
- 4.9000 -0.9825 0.1865 -5.2675
- 5.0000 -0.9589 0.2837 -3.3805
- 5.1000 -0.9258 0.3780 -2.4494
- 5.2000 -0.8835 0.4685 -1.8856
- 5.3000 -0.8323 0.5544 -1.5013
- 5.4000 -0.7728 0.6347 -1.2175
- 5.5000 -0.7055 0.7087 -0.9956
- 5.6000 -0.6313 0.7756 -0.8139
- 5.7000 -0.5507 0.8347 -0.6597
- 5.8000 -0.4646 0.8855 -0.5247
- 5.9000 -0.3739 0.9275 -0.4031
- 6.0000 -0.2794 0.9602 -0.2910
- 6.1000 -0.1822 0.9833 -0.1853
- 6.2000 -0.0831 0.9965 -0.0834
- EDU>>
- EDU>> % Question 3.11
- A=4;
- t=0:10;
- w=0.6;
- x=4*cos(0.6*0:10);
- [t',x']
- ans =
- 0 4.0000
- 1.0000 2.1612
- 2.0000 -1.6646
- 3.0000 -3.9600
- 4.0000 -2.6146
- 5.0000 1.1346
- 6.0000 3.8407
- 7.0000 3.0156
- 8.0000 -0.5820
- 9.0000 -3.6445
- 10.0000 -3.3563
- EDU>> %question 3.12
- A=4;
- t=0:10;
- w=0.6;
- acceleration=A*w^2*cos(w*t)
- [t',x',acceleration']
- acceleration =
- Columns 1 through 4
- 1.4400 1.1885 0.5218 -0.3272
- Columns 5 through 8
- -1.0618 -1.4256 -1.2913 -0.7060
- Columns 9 through 11
- 0.1260 0.9140 1.3826
- ans =
- 0 4.0000 1.4400
- 1.0000 2.1612 1.1885
- 2.0000 -1.6646 0.5218
- 3.0000 -3.9600 -0.3272
- 4.0000 -2.6146 -1.0618
- 5.0000 1.1346 -1.4256
- 6.0000 3.8407 -1.2913
- 7.0000 3.0156 -0.7060
- 8.0000 -0.5820 0.1260
- 9.0000 -3.6445 0.9140
- 10.0000 -3.3563 1.3826
- EDU>> %question 3.13
- distance=120;
- min_angle=27;
- max_angle=33;
- max_height=distance*atan(max_angle)
- min_height=distance*atan(min_angle)
- max_height =
- 184.8603
- min_height =
- 184.0531
- EDU>> %question 3.14
- %a
- new_distance=20;
- new_height=200;
- new_angle=atan(new_height/new_distance)*180/pi
- %b
- c_suqared=(new_distance^2+new_height^2);
- distance_to_top = sqrt(c_suqared)
- new_angle =
- 84.2894
- distance_to_top =
- 200.9975
- EDU>>
- EDU>> %question 3.15
- tc1=[84.3,86.4,85.2,87.1,83.5,84.8,85.0,85.3,85.3,85.2,82.3,84.7,83.6]
- tc2=[90,89.5,88.6,88.9,88.9,90.4,89.3,89.5,88.9,89.1,89.5,89.4,89.8]
- tc3=[86.7,87.6,88.3,85.3,80.3,82.4,83.4,85.4,86.3,85.3,89,87.3,87.2]
- datatable=[thermocouple1;thermocouple2;thermocouple3]'
- tc1 =
- Columns 1 through 4
- 84.3000 86.4000 85.2000 87.1000
- Columns 5 through 8
- 83.5000 84.8000 85.0000 85.3000
- Columns 9 through 12
- 85.3000 85.2000 82.3000 84.7000
- Column 13
- 83.6000
- tc2 =
- Columns 1 through 4
- 90.0000 89.5000 88.6000 88.9000
- Columns 5 through 8
- 88.9000 90.4000 89.3000 89.5000
- Columns 9 through 12
- 88.9000 89.1000 89.5000 89.4000
- Column 13
- 89.8000
- tc3 =
- Columns 1 through 4
- 86.7000 87.6000 88.3000 85.3000
- Columns 5 through 8
- 80.3000 82.4000 83.4000 85.4000
- Columns 9 through 12
- 86.3000 85.3000 89.0000 87.3000
- Column 13
- 87.2000
- table =
- 84.3000 90.0000 86.7000
- 86.4000 89.5000 87.6000
- 85.2000 88.6000 88.3000
- 87.1000 88.9000 85.3000
- 83.5000 88.9000 80.3000
- 84.8000 90.4000 82.4000
- 85.0000 89.3000 83.4000
- 85.3000 89.5000 85.4000
- 85.3000 88.9000 86.3000
- 85.2000 89.1000 85.3000
- 82.3000 89.5000 89.0000
- 84.7000 89.4000 87.3000
- 83.6000 89.8000 87.2000
- EDU>> max(table)
- ans =
- 87.1000 90.4000 89.0000
- EDU>> min(table)
- ans =
- 82.3000 88.6000 80.3000
- Too many places to mark where John helped, I was fairly lost on this assignment, re-reading the texts and trying this again at home.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement