I don't want to include initial condition in the plot
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    University Glasgow
 am 29 Aug. 2022
  
    
    
    
    
    Bearbeitet: University Glasgow
 am 30 Aug. 2022
            Hi,
Please, how do omit the initial condition in my plot: I want to omit the plot for t=0: See my code below:
figure
subplot(2,1,1)
plot(z, theta(1:round(nt/10):nt,:))
plot(z, v(1:round(nt/10):nt,:))
0 Kommentare
Akzeptierte Antwort
  dpb
      
      
 am 29 Aug. 2022
        Again, way too much code that has no bearing on the issue -- and you don't format your code so can be read on top of that -- we've been thru this discussion before, it seems...
All that is of significance here is
...
subplot(2,1,1)
plot(z, theta(1:round(nt/10):nt,:))
...
 and if you don't want the first point, then don't ask for it ...
plot(z(2:end), theta(2:round(nt/10):nt,:))
or, if you really don't care about the initial points or know them from independent ICs, then just replace the first points with nan before calling plot...
subplot(2,1,1)
z(1)=nan;
theta(1,:)=nan;
plot(z, theta(1:round(nt/10):nt,:))
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Legend finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

