フィルターのクリア

plotting a graph using matlab

1 回表示 (過去 30 日間)
Vidhya Dharshini
Vidhya Dharshini 2014 年 2 月 5 日
コメント済み: Vidhya Dharshini 2014 年 2 月 13 日
I have the value of a time varying variable for every 5 seconds. How to plot a graph with it.

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 5 日
編集済み: Mischa Kim 2014 年 2 月 5 日
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.
  1 件のコメント
Vidhya Dharshini
Vidhya Dharshini 2014 年 2 月 13 日
Thank you. It worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by