[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: structure discussion
From: |
Andy Adler |
Subject: |
RE: structure discussion |
Date: |
Wed, 12 Oct 2005 14:30:58 -0400 (EDT) |
On Tue, 11 Oct 2005, Paul Billings wrote:
> Perhaps a more concise example: with version 2.1.71,
> clear g; g(1).a = g(2).a = 1;
> g(:).a = 2; % does what you'd expect (both .a values are changed)
> g(:).b = 1 % does NOT do what I would expect
FYI, Here is what the competition gives:
>> clear g; g(1).a =1; g(2).a = 1;
>> g(:).a = 2; % does what you'd expect (both .a values are changed)
??? Insufficient outputs from right hand side to satisfy comma separated
list expansion on left hand side. Missing [] are the most likely cause.
>> g(:).b = 1 % does NOT do what I would expect
??? Insufficient outputs from right hand side to satisfy comma separated
list expansion on left hand side. Missing [] are the most likely cause.
--
Andy Adler <address@hidden> 1(613)562-5800x6218