plotting a graph using matlab

2 次查看(过去 30 天)
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-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