Borrar filtros
Borrar filtros

Plot with respect to real time

1 visualización (últimos 30 días)
Mridul Tiwari
Mridul Tiwari el 7 de Oct. de 2015
Respondida: TastyPastry el 7 de Oct. de 2015
How can i plot a data with respect to real time ( time passed) ?

Respuestas (1)

TastyPastry
TastyPastry el 7 de Oct. de 2015
Determine what unit you're using for passed time. Assuming seconds, you can set your x-values to be
xValues = 0:t;
where t is the elapsed time from t=0.
Then you just need to set your y-values to whatever your data is.
yValues = data;
Make sure the dimensions of x and y are equal.
Call the plot function:
plot(xValues,yValues);

Categorías

Más información sobre Line 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