COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### plot 3d #2

• Follow

```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
```
 0

```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.
```
 0

```Walter Roberson <roberson@hushmail.com> wrote in message <945Yn.3397\$Zp1.2486@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
```
 0

```ftgh ftgh wrote:
> Walter Roberson <roberson@hushmail.com> wrote in message
>> 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.
```
 0

3 Replies
387 Views

Similiar Articles:

7/28/2012 1:06:04 AM