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
Reply ftgh 7/4/2010 7:13:06 PM

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
Reply Walter 7/4/2010 7:14:13 PM


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
Reply ftgh 7/5/2010 4:45:05 PM

ftgh ftgh wrote:
> 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

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
Reply Walter 7/5/2010 5:28:37 PM

3 Replies
387 Views

(page loaded in 0.199 seconds)

Similiar Articles:













7/28/2012 1:06:04 AM


Reply: