For loop plotting one result at a time
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Jan
le 10 Déc 2014
The question is not clear. Please start with formatting the code. Use the "{} Code" button.
Réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!