|
Roger Stafford wrote:
> "Jose " <jose.l.vega@gmail.com> wrote in message
>> x=[0.25 0.5 0.75 1]
>> y=[0.25 0.5 0.75 1]
> You first need to make meshes of x and y. Use
> if x varies along the columns of z. Then do
> surf(X,Y,z)
surf is happy to accept vectors for x and y.
SURF(x,y,Z) and SURF(x,y,Z,C), with two vector arguments replacing
the first two matrix arguments, must have length(x) = n and
length(y) = m where [m,n] = size(Z). In this case, the vertices
of the surface patches are the triples (x(j), y(i), Z(i,j)).
Note that x corresponds to the columns of Z and y corresponds to
the rows.
|