|
From: | gigiolone123 |
Subject: | Re: matrix: repeat last number before zero |
Date: | Sat, 9 Nov 2019 12:09:17 -0600 (CST) |
hi phill.. good fast solution i give you the rest of code: maxZero=max(sum(!b2)) for i=1:maxZero (b2(find (b2 == 0)) = b2(find (b2 == 0) - 1)); endfor -- Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
[Prev in Thread] | Current Thread | [Next in Thread] |