Prev: bessel transform
Next: Matlab compilation
From: ftgh ftgh on 4 Jul 2010 15:13 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 4 Jul 2010 15:14 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 5 Jul 2010 12:45 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 5 Jul 2010 13:28 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 |