Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: booking parts of program

Subject: booking parts of program

From: huda nawaf

Date: 17 Aug, 2007 08:15:31

Message: 1 of 5

hi
how I can booking part from my program in matlab?
I know if there is one expression I do % but if there are
more such as 20 expressions .What I do?

Subject: Re: booking parts of program

From: us

Date: 17 Aug, 2007 08:43:17

Message: 2 of 5

huda nawaf:
<SNIP wants to book the bad guys to put them into a cell...

> how I can booking part from my program in matlab...
> I know if there is one expression I do % but if there are
> more such as 20 expressions...

well, if(f) i understand your use of <booking> correctly,
you may be interested in the <comment block> syntax

% copy/paste/run this sequence
     a=1
%{
     b=2
     c=3
%}
     d=4

us

Subject: Re: booking parts of program

From: huda nawaf

Date: 17 Aug, 2007 12:22:43

Message: 3 of 5

"us " <us@neurol.unizh.ch> wrote in message <fa3n35$st3
$1@fred.mathworks.com>...
> huda nawaf:
> <SNIP wants to book the bad guys to put them into a
cell...
>
> > how I can booking part from my program in matlab...
> > I know if there is one expression I do % but if there
are
> > more such as 20 expressions...
>
> well, if(f) i understand your use of <booking>
correctly,
> you may be interested in the <comment block> syntax
>
> % copy/paste/run this sequence
> a=1
> %{
> b=2
> c=3
> %}
> d=4
>
> us
hi us,
thanks
I copied and pasted this sequence but it didn't work.
I mean when I executed it ,the values of b and c
appeared in command window.

Subject: Re: booking parts of program

From: Titus

Date: 17 Aug, 2007 12:27:51

Message: 4 of 5


"huda nawaf" <halmamory@yahoo.com> schrieb im Newsbeitrag
news:fa43uj$118$1@fred.mathworks.com...
> "us " <us@neurol.unizh.ch> wrote in message <fa3n35$st3
> $1@fred.mathworks.com>...
>> huda nawaf:
>> <SNIP wants to book the bad guys to put them into a
> cell...
>>
>> > how I can booking part from my program in matlab...
>> > I know if there is one expression I do % but if there
> are
>> > more such as 20 expressions...
>>
>> well, if(f) i understand your use of <booking>
> correctly,
>> you may be interested in the <comment block> syntax
>>
>> % copy/paste/run this sequence
>> a=1
>> %{
>> b=2
>> c=3
>> %}
>> d=4
>>
>> us
> hi us,
> thanks
> I copied and pasted this sequence but it didn't work.
> I mean when I executed it ,the values of b and c
> appeared in command window.
>

Hi,
I guess then, that your MATLAB is not the newest one? The syntax <us> showed
was introduced (I think) in R14.
Mark the text in your editor, right click, and you will find an entry
"comment". This adds the % for all the lines your marked.

Titus


Subject: Re: booking parts of program

From: huda nawaf

Date: 17 Aug, 2007 18:05:09

Message: 5 of 5

"Titus" <titus.edelhofer@mathworks.de> wrote in message
<fa4487$4cg$1@fred.mathworks.com>...
>
> "huda nawaf" <halmamory@yahoo.com> schrieb im
Newsbeitrag
> news:fa43uj$118$1@fred.mathworks.com...
> > "us " <us@neurol.unizh.ch> wrote in message <fa3n35$st3
> > $1@fred.mathworks.com>...
> >> huda nawaf:
> >> <SNIP wants to book the bad guys to put them into a
> > cell...
> >>
> >> > how I can booking part from my program in matlab...
> >> > I know if there is one expression I do % but if
there
> > are
> >> > more such as 20 expressions...
> >>
> >> well, if(f) i understand your use of <booking>
> > correctly,
> >> you may be interested in the <comment block> syntax
> >>
> >> % copy/paste/run this sequence
> >> a=1
> >> %{
> >> b=2
> >> c=3
> >> %}
> >> d=4
> >>
> >> us
> > hi us,
> > thanks
> > I copied and pasted this sequence but it didn't work.
> > I mean when I executed it ,the values of b and c
> > appeared in command window.
> >
>
> Hi,
> I guess then, that your MATLAB is not the newest one?
The syntax <us> showed
> was introduced (I think) in R14.
> Mark the text in your editor, right click, and you will
find an entry
> "comment". This adds the % for all the lines your marked.
>
> Titus
>
> thank you very much Titus ,I tried what you suggested
and succeeded

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
editor us 17 Aug, 2007 16:25:48
comment block us 17 Aug, 2007 04:45:08
comment us 17 Aug, 2007 04:45:08
special characters us 17 Aug, 2007 04:45:08
code us 17 Aug, 2007 04:45:08
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics