I have 4 matrices, X, Y, Z & CL. All matrices are 3 x 3 x 3.
I want to plot a 3d surface chart using the surf function. So for example is we say X is the atmospheric pressure, Y is the longitude, Z is altitude & CL is the rainfall. I want the chart to look something like this chart where the colour would represent the rainfall.
surf(X, Y, Z, CL);
I get the error message below. I don't understand what I am doing wrong?
Error using matlab.graphics.chart.primitive.Surface/set
Value must be a vector or 2D array of numeric type