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

Home » Public Forums » archive » Weird MIN behavior
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Weird MIN behavior [message #42747] Sun, 20 February 2005 14:08
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
Can someone explain this?


Normal case; everything works as you expect.

IDL> a = [1.0, 2.0, 3.0, 4.0, 5.0]
IDL> b = min(a, MAX = c)
IDL> print, b, c
1.00000 5.00000


Abnormal case; why doesn't this work?

IDL> a = [1.0, 2.0, 3.0, 4.0, 5.0]
IDL> r = dblarr(2)
IDL> r[0] = min(a, MAX = r[1])
% MIN: Expression must be named variable in this context: <DOUBLE ((
0.00000, 0.00000))>.


-Mike
[Message index]
 
Read Message
Previous Topic: Re: copying text to the system clipboard
Next Topic: miracle of !order

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

Current Time: Sun Oct 12 01:03:17 PDT 2025

Total time taken to generate the page: 1.59868 seconds