Plotting 2 different figures but MATLAB outputting same plot.

2 vues (au cours des 30 derniers jours)
Elham
Elham le 29 Juin 2022
Commenté : Jon le 30 Juin 2022
Hi I am trying to plot 2 different figures, but MATLAB is giving me the same exact figure for both plots. Not sure what's wrong with my code.
  1 commentaire
Walter Roberson
Walter Roberson le 29 Juin 2022
As outsiders who do not have access to the data... we have no reason to expect the plots to be different. Or to expect them to be the same either.

Connectez-vous pour commenter.

Réponse acceptée

Jon
Jon le 29 Juin 2022
Modifié(e) : Jon le 29 Juin 2022
Are you sure that you aren't getting an error in your code after the first plot is made?
Check the command window for errors.
For further help please provide a self contained example that replicates the problem. Your current code doesn't define A or z so I can't actually run it to see what goes wrong.
  2 commentaires
Elham
Elham le 29 Juin 2022
Got it fixed, thanks!
Jon
Jon le 30 Juin 2022
Your welcome, glad you got it working

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by