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

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

[Octave-bug-tracker] [bug #54576] MATLAB inconsistency when assigning to


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #54576] MATLAB inconsistency when assigning to nonexistent variable using subsref (:)
Date: Mon, 27 Aug 2018 23:59:32 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

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

No problem lowering priority. I just post the bugs when I run into them -
typically when trying something off the matlab forums. It's hard to believe
people come up with this stuff *AND* that it's valid syntax. Anyway... ;)

MATLAB
++
>> clear all
>> a(:,:) = [4:6]
a =
     4     5     6
>> b(1:3,:) = [4:6]
Subscripted assignment dimension mismatch. 
>> c(:) = magic (3)
Subscripted assignment dimension mismatch. 
>> whos
  Name      Size            Bytes  Class     Attributes

  a         1x3                24  double              
--

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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