Plot different Y values for certain range of X
4 次查看(过去 30 天)
显示 更早的评论
Let's say I have:
X = [1:10];
Y = [10:20];
I want to plot Y vs X, but in the range of X=[5:10] I want Y values to be (Y+20). And have the same plot line for all.
How can I do it?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Visual Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!