Borrar filtros
Borrar filtros

plotting a graph using matlab

1 visualización (últimos 30 días)
Vidhya Dharshini
Vidhya Dharshini el 5 de Feb. de 2014
Comentada: Vidhya Dharshini el 13 de Feb. de 2014
I have the value of a time varying variable for every 5 seconds. How to plot a graph with it.

Respuesta aceptada

Mischa Kim
Mischa Kim el 5 de Feb. de 2014
Editada: Mischa Kim el 5 de Feb. de 2014
Try something like:
t = 0:5:100;
x = sin(t);
plot(t,x,'*')
xlabel('time in s')
ylabel('my y axis')
title('my title')
where x would represent your data. Make sure that the length of your time vector equals the length of your data vector.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by