From: Anabel on
Hi all,

I want to get 3 slices of a 3d plot created with surf

p = surf(x,y,z,sqrt(x.^2+y.^2+z.^2)); % the third argument is for colouring

x, y and z are 73x73 matrices

The plot looks nice but now I wanted to get the slices of the planes XY, YZ, and XZ.

I tried using "slice" but I always get the "wrong number of input arguments" error :S

Does anyone know?

Thanks
From: Steven_Lord on


"Anabel " <anabel.perezdiazREMOVE(a)tut.fi> wrote in message
news:i2jvdp$2f4$1(a)fred.mathworks.com...
> Hi all,
>
> I want to get 3 slices of a 3d plot created with surf
>
> p = surf(x,y,z,sqrt(x.^2+y.^2+z.^2)); % the third argument is for
> colouring
>
> x, y and z are 73x73 matrices
>
> The plot looks nice but now I wanted to get the slices of the planes XY,
> YZ, and XZ.
>
> I tried using "slice" but I always get the "wrong number of input
> arguments" error :S
>
> Does anyone know?

Since you haven't showed us the code that you tried to execute, there's no
way anyone can do more than simply guess as to the cause of the problem. As
the error message suggests, you're specifying either too many or too few
input arguments in your call to SLICE.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

From: Anabel on
"Steven_Lord" <slord(a)mathworks.com> wrote in message <i2k1kk$pj2$1(a)fred.mathworks.com>...
>
>
> "Anabel " <anabel.perezdiazREMOVE(a)tut.fi> wrote in message
> news:i2jvdp$2f4$1(a)fred.mathworks.com...
> > Hi all,
> >
> > I want to get 3 slices of a 3d plot created with surf
> >
> > p = surf(x,y,z,sqrt(x.^2+y.^2+z.^2)); % the third argument is for
> > colouring
> >
> > x, y and z are 73x73 matrices
> >
> > The plot looks nice but now I wanted to get the slices of the planes XY,
> > YZ, and XZ.
> >
> > I tried using "slice" but I always get the "wrong number of input
> > arguments" error :S
> >
> > Does anyone know?
>
> Since you haven't showed us the code that you tried to execute, there's no
> way anyone can do more than simply guess as to the cause of the problem. As
> the error message suggests, you're specifying either too many or too few
> input arguments in your call to SLICE.
>
> --
> Steve Lord
> slord(a)mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Well I didn't paste the code because I was just guessing how to use it. My question was more focused on: how to make the slice that I want.
Anyway the line that I tried after using surf is:

slice (x,y,z)
From: us on
"Anabel " <anabel.perezdiazREMOVE(a)tut.fi> wrote in message <i2k33s$2ef$1(a)fred.mathworks.com>...
> "Steven_Lord" <slord(a)mathworks.com> wrote in message <i2k1kk$pj2$1(a)fred.mathworks.com>...
> >
> >
> > "Anabel " <anabel.perezdiazREMOVE(a)tut.fi> wrote in message
> > news:i2jvdp$2f4$1(a)fred.mathworks.com...
> > > Hi all,
> > >
> > > I want to get 3 slices of a 3d plot created with surf
> > >
> > > p = surf(x,y,z,sqrt(x.^2+y.^2+z.^2)); % the third argument is for
> > > colouring
> > >
> > > x, y and z are 73x73 matrices
> > >
> > > The plot looks nice but now I wanted to get the slices of the planes XY,
> > > YZ, and XZ.
> > >
> > > I tried using "slice" but I always get the "wrong number of input
> > > arguments" error :S
> > >
> > > Does anyone know?
> >
> > Since you haven't showed us the code that you tried to execute, there's no
> > way anyone can do more than simply guess as to the cause of the problem. As
> > the error message suggests, you're specifying either too many or too few
> > input arguments in your call to SLICE.
> >
> > --
> > Steve Lord
> > slord(a)mathworks.com
> > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
> > To contact Technical Support use the Contact Us link on
> > http://www.mathworks.com
>
> Well I didn't paste the code because I was just guessing how to use it. My question was more focused on: how to make the slice that I want.
> Anyway the line that I tried after using surf is:
>
> slice (x,y,z)

well...
you better have a second look at

help slice;

us