Filter löschen
Filter löschen

How can i draw contours of a function of the form f(x)=X1^2+X2^2?

2 Ansichten (letzte 30 Tage)
Peter Mose
Peter Mose am 24 Sep. 2018
Kommentiert: Honglei Chen am 24 Sep. 2018
contour(X1,X2,f) doesn't draw contours.

Antworten (1)

Honglei Chen
Honglei Chen am 24 Sep. 2018
Are you looking for something like this?
ezcontour(@(x1,x2)x1.^2+x2.^2)
HTH
  2 Kommentare
Peter Mose
Peter Mose am 24 Sep. 2018
yes,something like that. can it plot contours/
Honglei Chen
Honglei Chen am 24 Sep. 2018
What I showed is a contour plot. Could you explain what you want?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by