how to do logical indexing
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ryaan Semwal
le 24 Fév 2016
Commenté : Ryaan Semwal
le 24 Fév 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 commentaires
Réponse acceptée
Guillaume
le 24 Fév 2016
%time: vector of time
%velocity: vector of velocity
intime = time >= starttime & time <= endtime
plot(time(intime), velocity(intime))
2 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!