octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52009] allow creation of 1-by-1 array with a


From: Rik
Subject: [Octave-bug-tracker] [bug #52009] allow creation of 1-by-1 array with a single function handle
Date: Wed, 13 Sep 2017 18:51:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #3, bug #52009 (project octave):

Is this just a special case?  What happens in Matlab if you try to reshape a
function handle?  Sample code:


x = @sin;
reshape (x, [1, 1])
reshape (x, [2, 1])
reshape (x, [0, 1])


As Kai pointed out, it might be very simple to overload resize() for function
handles to allow 1x1.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52009>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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