From: Gauri on
Is there a keyword to close a m-file, just like close all to close all figure files?

Thanks
Gauri
From: dpb on
Gauri wrote:
> Is there a keyword to close a m-file, just like close all to close all
> figure files?

What is an "open" m-file in the context of the question?

--
From: Gauri on

> What is an "open" m-file in the context of the question?
> I am creating (using edit) a m-file on-the-fly, writing some matter in it (more so copying) saving it and now I need to close the m-file.
From: dpb on
Gauri wrote:
>
>> What is an "open" m-file in the context of the question?
>> I am creating (using edit) a m-file on-the-fly, writing some matter
>> in it (more so copying) saving it and now I need to close the m-file.

How did you open it? How are you interacting to do the editing? Show
work...

--
From: Gauri on

> What is an "open" m-file in the context of the question?
>
> -- I am creating (uing edit function) m-file on-the-fly, writing some matter in it (more so copying) and now I need to close the open file.
I am copying the help text from m-file 1 to m-file 2. I want to publish m-file 2 to make the help browser. I cannot publish m-file 1 directly because there are functions inside it and on publishing, the entire code is m-file 1 gets executed. I do not want this.
So, instead I call
t=help(m-file 1)
and now I write the string in 't' into another m-file 2. This is the file, I am to publish.