The question is not clear. Please start with formatting the code. Use the "{} Code" button.
For loop plotting one result at a time
8 次查看(过去 30 天)
显示 更早的评论
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
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!