Plot with respect to real time

How can i plot a data with respect to real time ( time passed) ?

回答 (1 件)

TastyPastry
TastyPastry 2015 年 10 月 7 日

0 投票

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);

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2015 年 10 月 7 日

回答済み:

2015 年 10 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by