[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66617] structfun assumes output arguments for
From: |
Fernando |
Subject: |
[Octave-bug-tracker] [bug #66617] structfun assumes output arguments for invoked command |
Date: |
Fri, 3 Jan 2025 02:55:06 -0500 (EST) |
Follow-up Comment #9, bug #66617 (group octave):
There's another case where Matlab result differs slightly from Octave, and the
patch I submitted also eliminates the discrepancy.
In Octave (without the patch), the following two calls to structfun return the
same:
octave:> x=struct;
octave:> structfun(@(z)z,x)
ans = [](0x1)
octave:> y=structfun(@(z)z,x)
y = [](0x1)
while in Matlab (or Octave with the patch), the first call returns nothing:
>> x=struct;
>> structfun(@(z)z,x)
>> y=structfun(@(z)z,x)
y = [](0x1)
I updated the patch with a couple of tests for that case.
(file #56737)
_______________________________________________________
Additional Item Attachment:
File name: structfun4.diff Size: 1KiB
<https://file.savannah.gnu.org/file/structfun4.diff?file_id=56737>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-60bab5f4bb97079a4f50fd30c5633b2562628477.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66617>
_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
Message not available
Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #66617] structfun assumes output arguments for invoked command,
Fernando <=
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available
Message not available