Problem with running a Matlab code.
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
WAN NOR NAZIRA MUSTAPA KAMAL
le 21 Jan 2021
Commenté : WAN NOR NAZIRA MUSTAPA KAMAL
le 21 Jan 2021
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 commentaires
Réponse acceptée
Daniel Pollard
le 21 Jan 2021
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.
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!