For loop plotting one result at a time

8 visualizaciones (últimos 30 días)
NIkola
NIkola el 10 de Dic. de 2014
Comentada: Jan el 10 de Dic. de 2014
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 comentario
Jan
Jan el 10 de Dic. de 2014
The question is not clear. Please start with formatting the code. Use the "{} Code" button.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by