I'm having trouble using the mesh or surf functions in matlab to make a 3d plot. I have a defined range of x values x=0:.5:5 and y values y=-5:.5:5 These both come out to 21 values. I also have a 21x21 matrix C with rows corresponding to x values and columns to y values.
I've been trying
figure();
x=0:.5:5;
z=-5:.5:5;
mesh(z,x,C);
but all I get is graph of a plane when the matrix actually has a very diverse set of elements. Any thoughts as to what I'm doing wrong? Thanks