Plotting 2 different figures but MATLAB outputting same plot.

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 Comment

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.

Sign in to comment.

 Accepted Answer

Jon
Jon on 29 Jun 2022
Edited: Jon on 29 Jun 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.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Tags

Asked:

on 29 Jun 2022

Commented:

Jon
on 30 Jun 2022

Community Treasure Hunt

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

Start Hunting!