Undefined operator '-' for input arguments of type 'matlab.gr​aphics.cha​rt.primiti​ve.Contour​'.

1 view (last 30 days)
I am trying to do a contour plot and I get the error shown in the summary. The plot appears correctly, but the program stops at this point. What does this error mean?

Answers (1)

Voss
Voss on 20 Apr 2022
This error means that you can't subtract something from a contour object (and you can't subtract a contour object from something). A contour object is a graphical object akin to a line or a patch or a text, not a numeric object that you can do mathematical operations with.
If you post your code, someone can show you how to do what you are intending to do.

Categories

Find more on Contour Plots 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!