Paul
Posts:
208
Registered:
2/23/10
|
|
Re: Wouldn't it be nice if Matlab supported C-style comments?
Posted:
Mar 10, 2013 6:29 PM
|
|
On Mar 10, 4:38 pm, "Bruno Luong" <b.lu...@fogale.findmycountry> wrote: > You might be interested in multi-line statement comments > > >> a=1 ... > > +2 ... % comment here ... > +3 ... > ... comment again ... > +4 > > a = > > 10 > > % (a = 1 + 2 + 3 + 4) > % Bruno
No that's *very* interesting. I never knew you could do that. So to comment out the +2 line, I would do
... % + 2
Not as flexible as comments defined by opening and closing tokens, but it goes a long way to fulfilling the need.
Thanks, Bruno.
|
|