help-octave
[Top][All Lists]
Advanced

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

Change “new function template” in Octave


From: Jefferson Andrade
Subject: Change “new function template” in Octave
Date: Mon, 13 Jun 2016 12:07:42 -0300

Hi,

I searched the FAQ and the manual (and google) but could not find an answer.

How do I change the template used to create a new function? For example, when I enter the command below:

>> edit f1.m

Octave will open the editor with the following contents in it:

----- BEGIN OF EDITOR CONTENTS -----
## Copyright (C) 2016 Jefferson O. Andrade                                                                            
##                                                                                                                    
## This program is free software; you can redistribute it and/or modify it                                            
## under the terms of the GNU General Public License as published by                                                  
## the Free Software Foundation; either version 3 of the License, or                                                  
## (at your option) any later version.                                                                                
##                                                                                                                    
## This program is distributed in the hope that it will be useful,                                                    
## but WITHOUT ANY WARRANTY; without even the implied warranty of                                                     
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                                      
## GNU General Public License for more details.                                                                       
##                                                                                                                    
## You should have received a copy of the GNU General Public License                                                  
## along with this program.  If not, see <http://www.gnu.org/licenses/>.                                              
                                                                                                                       
## -*- texinfo -*-                                                                                                    
## @deftypefn {Function File} address@hidden =} f1 (@var{input1}, @var{input2})                                        
##                                                                                                                    
## @seealso{}                                                                                                         
## @end deftypefn                                                                                                     
                                                                                                                       
## Author: Jefferson O. Andrade <address@hidden>                                                                   
## Created: 2016-06-13                                                                                                
                                                                                                                       
function [retval] = f1 (input1, input2)                                                                               
                                                                                                                       
endfunction
----- END OF EDITOR CONTENTS -----

But I need compatibility with MATLAB, so this template does not wort for me. How can I change it?

Thanks,
Jefferson Andrade.

--
"You question the worthiness of my Code? I should kill you where you stand!"

reply via email to

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