Problem with running a Matlab code.
3 次查看(过去 30 天)
显示 更早的评论
WAN NOR NAZIRA MUSTAPA KAMAL
2021-1-21
评论: WAN NOR NAZIRA MUSTAPA KAMAL
2021-1-21
I am having problem with the code where when I first run the code, the outcome that I get is data in values and graph but when I want to re run the code for the second time and so on, the outcome that I get is zero data values and the graph is in straight line. I am using MATLAB R2019a.Can you please help me to solve this problem.
0 个评论
采纳的回答
Daniel Pollard
2021-1-21
Clear your variables by putting the command
clear
at the start of your programme. It's almost certainly holding onto variables which affects repeated runs.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!