Problem with figures, plots behave oddly and are unusable
Show older comments
Hello,
I have been observing a problem related to all kinds of functions which plot something (plot, surf, contour etc). For example the following code results in a very distorted image
f=@(x) [x(1)^2-4*x(2)^2+3; x(1)-x(2)^2];
figure(1)
plotzeros(f, [-0.5 4], [-2.2 2.2])
.png)
Ihave tried to uninstall and reinstall MATLAB, however nothing has changed. What should I do to solve the problem?
Thank you.
6 Comments
Dennis
on 11 Sep 2019
Can you provide a different example? I have never heard of a plotzeros function and have no clue what it might be doing.
Maybe also explain what you are trying to plot - you have 2 inputs and 2 outputs of your function. I would actually expect multiple lines from that (if you want a line plot).
Valentina Sgarbossa
on 11 Sep 2019
Valentina Sgarbossa
on 11 Sep 2019
Jan
on 11 Sep 2019
Thanks Valentina! I really love the image in the question. It is one of the best Matlab diagrams I've ever seen! :-)
Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!.png)