How can I use colors in my surf, truely?

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

Please show the relevant code
figure(4)
surf(YY,XX,Z)

Sign in to comment.

 Accepted Answer

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

Asked:

on 23 Jan 2014

Edited:

on 23 Jan 2014

Community Treasure Hunt

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

Start Hunting!