[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: whitespace and structure access operator
From: |
Sebastian |
Subject: |
Re: whitespace and structure access operator |
Date: |
Thu, 26 Nov 2015 07:41:58 +0100 |
> Am 25.11.2015 um 23:50 schrieb John W. Eaton <address@hidden>:
>
> What does Matlab do for things like
>
> b . x = 1
>
> Does the behavior differ if there is a function called 'b' in the path (I
> hope not, but I have to ask)?
>
> jwe
I have created the following function "b" in my path
function b(varargin)
varargin
end
The function is called if I do not assign any value
>> b . x
varargin =
'.' 'x'
and similarly
>>b .x
varargin =
'.x'
However, If I do assign a value a struct is created
>> b . x = 1
b =
x: 1
Tested on Matlab 2015b (Mac).