how to do logical indexing
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ryaan Semwal
el 24 de Feb. de 2016
Comentada: Ryaan Semwal
el 24 de Feb. de 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 comentarios
Respuesta aceptada
Guillaume
el 24 de Feb. de 2016
%time: vector of time
%velocity: vector of velocity
intime = time >= starttime & time <= endtime
plot(time(intime), velocity(intime))
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!