Thread Subject: slice through volume

Subject: slice through volume

From: Kamran

Date: 25 Sep, 2009 05:48:16

Message: 1 of 2


Hi,

I have a cube and use "slice" command to view cross section of the volume:

hz = slice(X,Y,Z,fftgrid,[],[],(minz+maxz)/2);

How can I get (or is it posible) to get, say the "Z" level through the
handle (hz) and set it to a different value, so to avoid issuing a new
slice command for each level of Z. I am trying to attach a slider to
each axes. Something like:
set (hz, 'SomeProperty', somevalue);

I can't find anything in the property list with that effect.

Thanks,

Kamran

Subject: slice through volume

From: Steven Lord

Date: 25 Sep, 2009 13:27:03

Message: 2 of 2


"Kamran" <kamran@uio.no> wrote in message
news:h9hlj0$c25$1@news01.tp.hist.no...
>
> Hi,
>
> I have a cube and use "slice" command to view cross section of the volume:
>
> hz = slice(X,Y,Z,fftgrid,[],[],(minz+maxz)/2);
>
> How can I get (or is it posible) to get, say the "Z" level through the
> handle (hz) and set it to a different value, so to avoid issuing a new
> slice command for each level of Z. I am trying to attach a slider to each
> axes. Something like:
> set (hz, 'SomeProperty', somevalue);
>
> I can't find anything in the property list with that effect.

It's not that simple. Suppose we were to display a cross-section of the
Eiffel Tower at a height of 1 foot. Now we want to change the height of
that cross-section to 900 feet. Obviously, simply changing the location of
the slice plane, without taking into account the difference in the shape and
size of the tower, will not give us an accurate representation. After all,
900 feet is just about the top floor of the tower, which is much narrower
than the base.

I think you're going to need to call SLICE for each new level.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
curve Sprinceana 26 Sep, 2009 05:00:12
volume Sprinceana 26 Sep, 2009 05:00:06
slice Sprinceana 26 Sep, 2009 05:00:06
rssFeed for this Thread

Contact us at files@mathworks.com