From: Sofia Häggberg on 28 Jul 2010 07:27 let's say I wrote and I am calling this function: function ppp clc clear when I am calling it as ppp this function is unable to execute clear (since my workspace is not clear) although when I am executing the function (command) clear from command window it works (workspace is clear) ... any help please?
From: us on 28 Jul 2010 07:41 "Sofia Häggberg" <hd.int.assNOSPAM(a)gmail.com> wrote in message <i2p468$q2f$1(a)fred.mathworks.com>... > let's say I wrote and I am calling this function: > > function ppp > clc > clear > > when I am calling it as ppp this function is unable to execute clear (since my workspace is not clear) although when I am executing the function (command) clear from command window it works (workspace is clear) ... any help please? yes... CAREFULLY look at this, again doc clear; us
From: Sofia Häggberg on 28 Jul 2010 07:56 I dont know! :( I tried almost everything. "us " <us(a)neurol.unizh.ch> wrote in message <i2p50f$j0u$1(a)fred.mathworks.com>... > "Sofia Häggberg" <hd.int.assNOSPAM(a)gmail.com> wrote in message <i2p468$q2f$1(a)fred.mathworks.com>... > > let's say I wrote and I am calling this function: > > > > function ppp > > clc > > clear > > > > when I am calling it as ppp this function is unable to execute clear (since my workspace is not clear) although when I am executing the function (command) clear from command window it works (workspace is clear) ... any help please? > > yes... > CAREFULLY look at this, again > > doc clear; > > us
From: us on 28 Jul 2010 08:06 "Sofia Häggberg" <hd.int.assNOSPAM(a)gmail.com> wrote in message <i2p5sk$g7d$1(a)fred.mathworks.com>... > I dont know! :( > > I tried almost everything. > > "us " <us(a)neurol.unizh.ch> wrote in message <i2p50f$j0u$1(a)fred.mathworks.com>... > > "Sofia Häggberg" <hd.int.assNOSPAM(a)gmail.com> wrote in message <i2p468$q2f$1(a)fred.mathworks.com>... > > > let's say I wrote and I am calling this function: > > > > > > function ppp > > > clc > > > clear > > > > > > when I am calling it as ppp this function is unable to execute clear (since my workspace is not clear) although when I am executing the function (command) clear from command window it works (workspace is clear) ... any help please? > > > > yes... > > CAREFULLY look at this, again > > > > doc clear; > > > > us do NOT top post(!)... you don't have to ...try almost everything... (what is there to be 'tried', anyhow...) you have to read the doc as you were told... us
From: Bruno Luong on 28 Jul 2010 08:28 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
|
Next
|
Last
Pages: 1 2 Prev: Symbolic Jacobian Next: EARN AMAZING COMMISIONS FROM ONLINE CPA NETWORK NO INVESTMENT |