Filter löschen
Filter löschen

How can I use colors in my surf, truely?

1 Ansicht (letzte 30 Tage)
Ayob
Ayob am 23 Jan. 2014
Bearbeitet: Ayob am 23 Jan. 2014
I've used surf order with a simple method surf(X,Y,Z). X and Y are p*1 matrices and Z is a p*p matrix. I want to use colors to show me differences for z value, but as you see in my surf colors are not used to show contours for z value and maybe this contour is meaningless. How can I solve the problem?
  2 Kommentare
Walter Roberson
Walter Roberson am 23 Jan. 2014
Please show the relevant code
Ayob
Ayob am 23 Jan. 2014
Bearbeitet: Ayob am 23 Jan. 2014
figure(4)
surf(YY,XX,Z)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 23 Jan. 2014
surf(x,y,z,z)
  1 Kommentar
Ayob
Ayob am 23 Jan. 2014
Bearbeitet: Ayob am 23 Jan. 2014
I did it, but *it still doesn't work.*

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by