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

Home » Public Forums » archive » Re: matrix division
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: matrix division [message #60432 is a reply to message #60431] Thu, 22 May 2008 04:41 Go to previous messageGo to previous message
adam.ranson is currently offline  adam.ranson
Messages: 4
Registered: May 2008
Junior Member
On 22 May, 11:00, Nigel Wade <n...@ion.le.ac.uk> wrote:
> adam.ran...@bris.ac.uk wrote:
>
>> Thanks for the quick response David! This is the way I'd
>> assumed it would be done but doesn't give me the numbers
>> back I'd expect. For example:
>
>> I = [[1, 2, 2],[2,1,1]]
>> C = [[8, 2, 8],[2,8,1]]
>> Z = I/C
>
>> IDL> print, z gives...
>> 0 1 0
>> 1 0 1
>
>> I want to divide 1 by 8, 2 by 2, 2 by 8, 2 by 2, 1 by 8 & 1 by 1.
>
> You have done.
>
> But maybe what you really want to do is divide 1.0 by 8.0, etc...
>
> --
> Nigel Wade

Oh right I see what's happening now! How can I force it to use a
floating point (?) data type then?

Sorry for the dumb questions, the manual/online I got with my copy
seems
to be very unhelpful to me!

Best wishes and thanks for your time

Adam
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plotting graphics for web pages
Next Topic: Re: interact with iimage from the command line?

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

Current Time: Sun Oct 12 11:12:39 PDT 2025

Total time taken to generate the page: 2.15875 seconds