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 
Switch to threaded view of this topic Create a new topic Submit Reply
Question [message #76397] Tue, 31 May 2011 01:02
Konstantinos is currently offline  Konstantinos
Messages: 29
Registered: April 2011
Junior Member
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.

any suggestions?

Thank You in advance

Kostas
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to plot multiple cgContour plots using the same colour levels (but containing differing data)
Next Topic: clip in vector function

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

Current Time: Wed Oct 08 18:59:55 PDT 2025

Total time taken to generate the page: 0.00491 seconds