作者diva ( )
看板MATLAB
标题Re: [绘图] 请问如何画螺旋图呢 ?
时间Sun Mar 11 21:45:59 2012
: 麻烦高手给一点提示,自己看过多次,依然不懂教授要我做什麽,只知道
: 要画类似螺旋的图
: The following parametric equations generate a conical helix
: x= t*cos(6t)
: y= t*sin(6t)
: z= t
: Compute values of x,y and z for t = 0 to 6pi with t=pi/64.
: Use subplot to generate
: a two dimensional line plot (red solid line) of (x,y)
: in the top pane
: and a three-dimensional line plot (cyan solid line) of (x,y,z) in the
: bottom pane. Label the axes for both plots.
: 顺便帮朋友PO他的,他也不了解教授的意思。
: 麻烦板上高手给点提示,并非要求解题,很少发文,如有冒犯多多提醒。
t=0:pi/64:6*pi ;
x= t.*cos(6*t) ;
y= t.*sin(6*t) ;
z= t ;
subplot(2,1,1)
plot(x,y,'r')
xlabel('x')
ylabel('y')
axis equal
subplot(2,1,2)
plot3(x,y,z,'c')
xlabel('x')
ylabel('y')
zlabel('z')
axis equal
: 12. If the bunge jumper equation has been changed as:
: 1)
: where v is the velocity at time t, g is the gravitational force
: (= 9.81 kg/m2)
: and cd is the air drag coefficient (=0.25 kg/m) and m is the jumper’s
: mass (68.1 kg), and
: |v| is defined as:
: |v|= v if v >0
: = -v if v <0
: (i.e. it is an absolute operation)
: Also the position the jumper has at time t can be determined as
: 2)
: If it is assumed that the jumper’s initial position is defined as x(0) = 0
: at t= 0 and the velocity at t = 0 is defined also as v(0) = - 40m/s
: Express equations 1) and 2) into differenec equations and then find
: 12.1) v(2), x(2)
: 12.2) v(4), x(4)
交给楼下
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.103.220
1F:推 Rasin:高空弹跳问题 求列条件求方程 03/11 22:19
2F:推 war0tft:感谢diva大大指点 03/11 22:20