plotting a graph using matlab
1 view (last 30 days)
Show older comments
Vidhya Dharshini
on 5 Feb 2014
Commented: Vidhya Dharshini
on 13 Feb 2014
I have the value of a time varying variable for every 5 seconds. How to plot a graph with it.
0 Comments
Accepted Answer
Mischa Kim
on 5 Feb 2014
Edited: Mischa Kim
on 5 Feb 2014
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.
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!