help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commenting out lines


From: Przemek Klosowski
Subject: Re: Commenting out lines
Date: Tue, 3 Aug 2004 10:45:23 -0400 (EDT)

   If there is I've missed it. I find it a real pain to have to put a 
   "#" in front of each of a bunch of lines whenever I want to test an 
   alternative method.


Would it work for you to do 

    if(pi==4)
       ... lines of code to be skipped
    endif

Even better, you could

    if(method==3)
       ... code for method 3
    else if(method==4)
       ... code for method 4
    endif; endif




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]