Stuff related to Matlab

Matlab 7.5 GUI Slow Under Mac OS X

Blog categories: 

I know it’s almost common sense, but today I had to refix the slow GUI for Matlab yet another time. As the information seems to start vanishing from the web, I want to perpetuate it here.

Go into directory /Applications/MATLAB_R2007b/bin/maci (or wherever your installation resides) and create a file called java.opts with the following content.


Matlab Subplot with linked/connected axes

Blog categories: 

I recently had to make a Matlab™ subplot and wanted to link the axes of the two plots together, so that both graphs show the same range on their x-axis. Of course, there is a simple command for this in Matlab™: linkaxes. Detailed information about the command can be found on the Web-Documentation. The following code shows, how I did it in my script.

Write m-files for Matlab and Octave

Blog categories: 

Some days ago, I needed to write an m-file (Matlab™ Function File), which had to run under Octave as well. If you use full Octave compliant stuff, this works quite easily without modification of your code. But if you use e. g. subplot(…) with a range to make one plot broader or wider, Octave resigns. Therefore, I put in the following statement and wrote this blog message as a reminder :)