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 #60434 is a reply to message #60433] Thu, 22 May 2008 03:00 Go to previous messageGo to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
adam.ranson@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
[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: Sat Nov 29 05:54:19 PST 2025

Total time taken to generate the page: 0.64067 seconds