I have the value of a time varying variable for every 5 seconds. How to plot a graph with it.

 Akzeptierte Antwort

Mischa Kim
Mischa Kim am 5 Feb. 2014
Bearbeitet: Mischa Kim am 5 Feb. 2014

0 Stimmen

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.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by