x =
1 2
0 1
>> y=[1 0; 0 1]
y =
1 0
0 1
>> z=[ 2 2 ; 1 1]
z =
2 2
1 1
>> mesh(x,y,z) % 3D graph with mesh for the 3 matrix (x,y and z)
>> k=1:1:100 % we want to plot the curves z=k with k integer number on the plane (x,y)
>> contour(x,y,z,[k])
My question is how can I use pcolor for my 3 matrix?
I tried :
>> pcolor(x,y,z)
I receive this error:
??? Attempt to execute SCRIPT surface as a function.
Error in ==> pcolor at 76
hh = surface(x,y,zeros(size(c)),c,'parent',cax);
a hint:
- it seems you have a proprietary SURFACE function somewhere sitting around...
which surface -all;
% should show you the built-in
us