A line does not appear when I plot
显示 更早的评论
When I run this code it puts a graph with no line. how do I get the line to show?

2 个评论
the cyclist
2023-5-15
If you post your code rather than an image of your code (or upload a *.m file), we can copy & paste it into MATLAB, which makes it much easier for us to help you.
the cyclist
2023-5-15
采纳的回答
更多回答(1 个)
the cyclist
2023-5-15
1 个投票
The way you have coded this, both h and Temp are going to be scalars (single values) after the loop completes, so there is only one point to plot.
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!