For loop plotting one result at a time
8 views (last 30 days)
Show older comments
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 Comment
Jan
on 10 Dec 2014
The question is not clear. Please start with formatting the code. Use the "{} Code" button.
Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!