> In a recent version of Matlab, what do the attached scripts do?
> With the attached scripts in your load path, could someone please try
> the following commands in Matlab and report the results here.
> ascript %% Error about code after local function
> %% definition or something else?
> bscript %% Expect nothing.
> bscript1 %% Error about undefined function (assume
> %% local function is not accessible outside
> %% of script)?
ans = '184.108.40.2069112 (R2018b) Update 3'
Error: File: ascript.m Line: 8 Column: 1
Function definitions in a script must appear at the end of the file.
Move all statements after the "ascript1" function definition to before
the first local function definition.
Undefined function or variable 'bscript1'.