From: ftgh ftgh on
hello
how plot 3d surf LIKE THIS D=f(tx,ty)
tx and ty are vectors and D a matrix that represent the value of D at the point (tx,ty)

thank you
From: Walter Roberson on
ftgh ftgh wrote:

> how plot 3d surf LIKE THIS D=f(tx,ty)
> tx and ty are vectors and D a matrix that represent the value of D at
> the point (tx,ty)

The documentation on surf() has a specific section on parametric plotting.
From: ftgh ftgh on
Walter Roberson <roberson(a)hushmail.com> wrote in message <945Yn.3397$Zp1.2486(a)newsfe15.iad>...
> ftgh ftgh wrote:
>
> > how plot 3d surf LIKE THIS D=f(tx,ty)
> > tx and ty are vectors and D a matrix that represent the value of D at
> > the point (tx,ty)
>
> The documentation on surf() has a specific section on parametric plotting.

hello
I TRY WITH SURF
but a messag said that the size of vector dx and dy must be the same that D
how can plot a 3d surface like this D=f(tx,ty)
thank you
From: Walter Roberson on
ftgh ftgh wrote:
> Walter Roberson <roberson(a)hushmail.com> wrote in message
> <945Yn.3397$Zp1.2486(a)newsfe15.iad>...
>> ftgh ftgh wrote:
>>
>> > how plot 3d surf LIKE THIS D=f(tx,ty)
>> > tx and ty are vectors and D a matrix that represent the value of D
>> at > the point (tx,ty)
>>
>> The documentation on surf() has a specific section on parametric
>> plotting.
>
> hello I TRY WITH SURF but a messag said that the size of vector dx and
> dy must be the same that D how can plot a 3d surface like this
> D=f(tx,ty) thank you

Which Matlab version are you using? Older versions required that the X and Y
be arrays the same size as Z, but newer versions allow X and Y to be vectors
as long as Z is length(X) by length(Y).

If you are using a version old enough not to support vectors, then you will
need to expand your X and Y vectors into matrices, such as by using meshgrid()
or ndgrid().

If you are using a version new enough to support vectors, then double check
that your vector and array sizes are consistent.
 | 
Pages: 1
Prev: bessel transform
Next: Matlab compilation