For loop plotting one result at a time

8 次查看(过去 30 天)
NIkola
NIkola 2014-12-10
评论: Jan 2014-12-10
close all clear all
Colour=hsv ; R =.95000 ; C = 1.0666 ; Tc=60/72; Ts=(2/5)*Tc ; cycle=5; syms ti q I0= solve(90-int(q * (sin (pi*ti/Ts)), ti,0, Ts),q); I0=subs(I0,'3.14',pi); sine = @(t) sin(pi*t/Ts); I =@(t) I0*sine(t).*(t <= Ts); for n=1:cycle t=(n-1)*Tc:.01:n*Tc; I = @(t) I0*sine(t-(n-1)*Tc).*(t <= ((n-1)*Tc+Ts)); plot(t,I(t),'LineWidth',2) hold on xlim([0 n*Tc]) ylim([ 0 600]) title ( ' Aortni krvni pritisak ' ) ylabel ( ' Krvni protok (ml/ s ) ' ) xlabel ( ' vreme ( s ) ' ) end
Hey guys,can someone help me with this. It works its plotting now i need to create another for loop to plot all the resolts but one at a time so i can see how the line is drawing?? Thanks for the support
  1 个评论
Jan
Jan 2014-12-10
The question is not clear. Please start with formatting the code. Use the "{} Code" button.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by