cat with empty matrix
Jaroslav Hajek
highegg at gmail.com
Tue Nov 4 15:08:53 CST 2008
On Tue, Nov 4, 2008 at 4:50 PM, David Bateman
<David.Bateman at motorola.com> wrote:
> Phil Fong wrote:
>>
>> cat with an empty matrix behaves differently in Octave 3.0.3 than in
>> Matlab 7.3.
>> In Octave:
>> octave:18> cat(2,[],1)
>> error: octave_base_value::reshape (): wrong type argument `scalar'
>>
>> In Matlab:
>>
>>>>
>>>> cat(2,[],1)
>>>>
>>
>> ans =
>> 1
>>
>> Obviously, in actual use the empty matrix is usually a variable rather
>> than a literal empty matrix.
>>
>
> Try the attached patch.. Jaroslav can you apply this to 3.0.3+ as well?
>
Applied. Thx.
--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Bug-octave
mailing list