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 #60443 is a reply to message #60435] Wed, 21 May 2008 11:35 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
adam.ranson@bris.ac.uk writes:

> I have a question about IDL 5.6 which I'm pretty new to... I seem to
> remember having a similar problem in MatLab a while back too. I'm
> trying to divide each of the elements in a 2D array by the elements in
> 2nd 2D array of identical dimensions and put the result into 3rd
> array. Is it possible to do this in one statement in IDL or do I have
> to go through each item using a loop?

I would try something like this:

IDL> c = a / b

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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 Nov 30 12:15:47 PST 2025

Total time taken to generate the page: 1.36149 seconds