comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: extracting subarray (*,*,index) gives (1,1,index). WHY ???
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: extracting subarray (*,*,index) gives (1,1,index). WHY ??? [message #6868] Fri, 23 August 1996 00:00 Go to previous message
lmudge is currently offline  lmudge
Messages: 9
Registered: October 1994
Junior Member
In article <3219CC9A.53D7@neurologie.uni-duesseldorf.de>,
knorr@neurologie.uni-duesseldorf.de says...
> i want to extract a line from a 3D image by doing
> line = image(*,*,z)
> i expect line to be a 1d vector with dimension dim(z)
> or to be more IDLish, i expect the following to hold
> size(line) == (z)
> but instead I get
> size(line) == (1,1,z)

Try line = reform(image(*,*,z))
this should work.

Leith.

------------------------------------------------------------ ----------------
_/ _/_/_/_/ _/ _/_/_/_/_/ _/ _/ Leith Mudge
_/ _/ _/ _/ _/ _/ lmudge@awadi.com.au
_/ _/ _/ _/ _/ _/ 10 Bristol Terrace
_/ _/_/_/_/ _/ _/ _/_/_/_/_/ Oakden SA 5086
_/ _/ _/ _/ _/ _/ Australia
_/ _/ _/ _/ _/ _/ Phone: +61 8 8266 4862
_/_/_/_/ _/_/_/_/ _/ _/ _/ _/

The victors called the revolution a triumph of liberty; but now and then
liberty, in the slogans of the strong, means freedom from restraint in the
exploitation of the weak. -Will Durant
------------------------------------------------------------ ----------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help on CGM Device
Next Topic: I had to try it!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 09:29:06 PDT 2025

Total time taken to generate the page: 0.99884 seconds