[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set zero to multiple values in a matrix

From: BOKU
Subject: set zero to multiple values in a matrix
Date: Sun, 30 Apr 2017 23:00:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0


i would like to know if there is a fast way to select some items of a indexed matrix?

this is not working in my case ?!

sel =

    [14   19   23   24   25   29]

lab is a 301x301 labeled matrix

   ans =  47

I want to do something like


do I really need to go through a loop for doing this?

greets chris

reply via email to

[Prev in Thread] Current Thread [Next in Thread]