How to condense a plot with a shorter x-axis?
8 次查看(过去 30 天)
显示 更早的评论
Hi,
Please look at attached plots(before and after). I want to condense a plot with x-axis of (0 12E^6) to (0 1) without losing any information of the initial plots. I have tried "linspace" and other methods, seems not working in the way as I wanted it to. Please help!
Tao
0 个评论
回答(2 个)
Star Strider
2020-2-19
Divide the x-axis vector by max(x), assuming ‘x’ is the x-axis vector. That will re-scale it without losing any information.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!