From: us on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <i2p7on$hf2$1(a)fred.mathworks.com>...
> When CLEAR is called within the function, only the *function* workspace is cleared, the BASE workspace is unchanged. You should create a script instead (remove the line "function ppp" of your mfile) or alternatively use commane evalin('base','clear').
>
> Bruno

yes... as the doc says (amongst other things)...

us
From: Oleg Komarov on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <i2p7on$hf2$1(a)fred.mathworks.com>...
> When CLEAR is called within the function, only the *function* workspace is cleared, the BASE workspace is unchanged. You should create a script instead (remove the line "function ppp" of your mfile) or alternatively use commane evalin('base','clear').
>
> Bruno
Even if you had to type "c" to call both "clear" and "clc" you just saved 7 chars which compared to a week of programming it's nothing.

Oleg