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

Home » Public Forums » archive » How to test for a vector/matrix of constants?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to test for a vector/matrix of constants? [message #51776] Wed, 06 December 2006 10:21 Go to previous message
Mirko is currently offline  Mirko
Messages: 20
Registered: April 1999
Junior Member
How can I quickly check if a vector/matrix is full of constants (all
elements equal)?
For example if a vector contained:
[2.38,2.38,2.38,...,2.38]
I want it flagged as a "constant" vector.

I can think of finding differences between successive elements, and
check for non-zero elements.

Any faster options?

Thanks,

Mirko
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Logarithmic Binning with Histogram function?
Next Topic: false color display

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

Current Time: Sat Oct 11 09:19:41 PDT 2025

Total time taken to generate the page: 0.88353 seconds