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

Home » Public Forums » archive » Array containing maximum values for two arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array containing maximum values for two arrays [message #86912] Thu, 12 December 2013 09:17 Go to previous message
joellama is currently offline  joellama
Messages: 8
Registered: July 2013
Junior Member
Hi,

I am trying to figure out how to take two arrays and make a new array with each value is the maximum value of each of the sub elements of the two arrays, i.e.

a = [5, 6, 7]
b = [3, 8, 4]

then the resultant vector would be
c= [5, 8, 7]

Ideally I would obviously like to do this without a loop!

Any help would be really appreciated
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How can I send commands from Java application to IDL application?
Next Topic: Problems with control the size of the lat-lon tick labels and the position of my colorbar

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

Current Time: Wed Oct 08 15:07:30 PDT 2025

Total time taken to generate the page: 0.00435 seconds