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

Home » Public Forums » archive » question
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: Question [message #76395 is a reply to message #17044] Tue, 31 May 2011 02:10 Go to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
On 05/31/2011 10:02 AM, Konstantinos wrote:
> Dear ALL
>
> Supose that we have an matrix, lets say a[200,200]
> most of the elements are 0
> I want to find the coordinates and the values of the elements that are
> not zero within the matrix
> (eg valye 5, col 12, row 17)
>
> if i give the commanf
>
> index=WHERE(a gt 0)
> then the result is a long aray of dimesion 1.

the size of the array depends on how many elements were found.

To get the coordinates into the matrix, you might want to use
ARRAY_INDICES.




>
> any suggestions?
>
> Thank You in advance
>
> Kostas
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Histogram Bug Update
Next Topic: Re: Frustrated by 2 Data Plotting problems

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

Current Time: Sat Oct 11 05:37:55 PDT 2025

Total time taken to generate the page: 1.27892 seconds