|
From: | Andreas Weber |
Subject: | Re: assign value different position in array |
Date: | Fri, 5 Oct 2018 20:00:08 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
Am 05.10.18 um 09:53 schrieb LucaLuca:
i want to assign value 0 to last end index position(v) v is position array
a = NaN (3); v = [2 1 3]; a(columns(a):-1:1 <= v.') = 0 a = NaN 0 0 NaN NaN 0 0 0 0 perhaps someone comes with a better solution....
[Prev in Thread] | Current Thread | [Next in Thread] |