how to do logical indexing
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ryaan Semwal
am 24 Feb. 2016
Kommentiert: Ryaan Semwal
am 24 Feb. 2016
I need to plot a graph for that I have two files velocity and time. But I have to plot the graph for certain interval of time, so can you help me how should I get the corresponding velocity points as both the files are in vector form.
Thanks
0 Kommentare
Akzeptierte Antwort
Guillaume
am 24 Feb. 2016
%time: vector of time
%velocity: vector of velocity
intime = time >= starttime & time <= endtime
plot(time(intime), velocity(intime))
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!