Time dependent variable in plot.
显示 更早的评论
Hello,
Fairly new to Matlab, so probably a simple question/answer.
I want to make a plot where my y-axis value depends on the timezone (x-axis). For example:
When x >= 0 & x < 5
y = 10;
When x >= 5 & x < 10
y = 10 + x*0.5;
when x >= 10 & < 15
y = -5;
The values above are just for the example.
What is the best (most efficient) way to make a plot that shows this?
Thanks in advance.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

