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

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

[Octave-bug-tracker] [bug #49072] assigning double arrays to cell arrays


From: Rik
Subject: [Octave-bug-tracker] [bug #49072] assigning double arrays to cell arrays: matlab incompatibility?
Date: Mon, 12 Sep 2016 21:09:51 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #2, bug #49072 (project octave):

Matlab probably wants the RHS of the expression in curly brackets.

Does this work in Matlab?


c = cell (2,2);
c(1,:) = {rand(1,2)}


If it does, then I would say that Octave's syntax is easier to understand and
there is no reason to change it.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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