How to plot a given signal but by setting a limit on the X value
2 views (last 30 days)
Show older comments
This is for a homework assignment for a class i am taking right now. We are given a signal [S] to download, and the X axis goes to 2000. I have searched for a while for a function that will allow me to plot from [0:200], but i am having no luck so far.
0 Comments
Accepted Answer
Adam
on 8 Dec 2017
doc xlim
will change the axis limits
someArray(1:200)
will allow you to only access the first 200 samples of the array to plot in the first place.
0 Comments
More Answers (1)
See Also
Categories
Find more on Multirate Signal Processing 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!