How can I use colors in my surf, truely?

1 view (last 30 days)
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 Comments
Ayob
Ayob on 23 Jan 2014
Edited: Ayob on 23 Jan 2014
figure(4)
surf(YY,XX,Z)

Sign in to comment.

Accepted Answer

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

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!