This topic has been permanently closed and transferred to MATLAB Answers.
HOW TO PLOT ON THE SAME FIGURE PLOTS OF DIFFERENT SCRIPTS
Pasquale Varlotta
on 14 Nov 2023
Latest activity Edit by Pasquale Varlotta
on 14 Nov 2023
Hi, I'm in truble because I have two programs with the same variables and parameters. The main of the study is to change a value and plot the results. The problem is that I want them on the same plot but I use the same name for the variabes in the two different programs so when I use some function to join the figures togheter matlab resets the values obtained in the first program and runs only the second one.
Is there a method to avoid changing all the names of the variables in one of the two programs (because they have something like 500 lines)?
4 Comments
- You should learn to write functions instead of scripts;
- Use hold on