Re: Array.deleteElement within macro language
Posted by
Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Array-deleteElement-within-macro-language-tp5021937p5021948.html
On Friday, 29 March 2019 18:40:57 GMT
[hidden email] wrote:
> Hmm,
> I understand that you need some more lines for "index-delete":
>
> // delete using indexes
> a2 = Array.getSequence(10);
> a22 = Array.copy(a2);
> a22[5] = NaN;
> a22[6] = NaN;
> without5and6 = Array.delete(a22, NaN);
>
> Maybe I'm wrong.
Oops, now I see... one sets the desired index to delete to NaN, then delete
it. Thanks for the clarification.
Regards
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html