User Tools

Site Tools


info:linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
info:linux [2009/12/03 15:33] – external edit 127.0.0.1info:linux [2010/08/09 21:45] (current) – miscellaneous link added moritz
Line 2: Line 2:
 This page summarizes some tips for beginners as well as solutions I face during daily work. This page summarizes some tips for beginners as well as solutions I face during daily work.
  
-[[.:basic_commands|Basic commands]]+  * [[.:basic_commands|Basic commands]] 
 +  * [[.:development|Development]] 
 +  * [[oorexx Debian|Building ooRexx for Debian]] 
 +  * [[mirroring|Mirroring]] 
 +  * [[miscellaneous|Miscellaneous]] 
 + 
 +====== Matlab Tips ====== 
 + 
 +===== Function skeleton ===== 
 +To arrive at your own custom skeleton for new .m files, you may insert your skeleton before line 121 of edit.m. Notice that matlab will load edit.m on startup and changes to edit.m thereafter won't be seen until rebooting matlab.  
 +Example: <code=matlab> 
 +% ... 
 +else 
 +        file_1 = fopen(fileName, 'w'); % line 121 here 
 +        fprintf(file_1, '%% #######################\n'); 
 +        fprintf(file_1, '%% # %s\n', fileName); 
 +        fprintf(file_1, '%% # Author(s): L.Doblies\n'); 
 +        fprintf(file_1, '%% # %s\n', date); 
 +        fprintf(file_1, '%% #######################\n\n'); 
 +        fprintf(file_1, 'function ret = %s()\n\n', fileNameWithoutExtension); 
 +        fprintf(file_1, 'end'); 
 +        openEditor(fullfile(path,fileName)); % this was @line 121 before 
 +end 
 +% ...  
 +</code>
  
-[[.:development|Development]] 
info/linux.1259850827.txt.gz · Last modified: 2009/12/03 21:31 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki