[Top][All Lists]

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

[Octave-bug-tracker] [bug #55622] for loop does not run over a matrix wi

From: anonymous
Subject: [Octave-bug-tracker] [bug #55622] for loop does not run over a matrix with colums but no row
Date: Thu, 14 Feb 2019 15:12:38 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:60.9) Goanna/4.1 PaleMoon/28.2.0a1

Follow-up Comment #14, bug #55622 (project octave):

It seems that MATLAB has used the concept of nullable type
>From the documentation

"An empty array in MATLAB is an array with at least one dimension length
to zero. Empty arrays are useful for representing the concept of "nothing"

All nonabstract MATLAB classes have a method named empty
<https://www.mathworks.com/help/matlab/ref/empty.html>. For example we can

A = int16.empty(5,0);

It means that all non abstract types all nullable. Therefore we can make array
of nulls and iterate over nulls.
--Interesting discussion--


Reply to this item at:


  Message sent via Savannah

reply via email to

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