Essential MATLAB and Octave – Closer to publication date

The publication date of “Essential MATLAB and Octave” is getting closer and closer. I would like to use this as an opportunity to share yet another endorsement, this time from Dr Hiram Luna-Munguia from the Department of Neurology at the University of Michigan:

This well-written book is a must-have for those people starting to solve numerical problems in Matlab or Octave. Since the beginning the reader will appreciate that the book´s major goal is to describe the essential aspects of both software without discrediting or highlighting the use of any of them. Page by page you will find clear explanations describing the way you should communicate with each software. The set of homework problems given at the end of each chapter makes the book even more dynamic.

Students and experts will warmly welcome Essential Matlab and Octave: A Beginner’s Handbook into their libraries. I highly recommend it as an excellent reference tool.

Essential Matlab Octave Rogel-Salazar


MATLAB for mac in Mountain Lion without X11

Well, I have now made the move to Mountain Lion and for a bit it did look quite good, until I had the nerve of trying to start MATLAB. Now, I must admit that the version of MATLAB that I have is by no means the latest, but it does do the work (for those of you who asked, I am running 2008a). So, I realised that the final blow for X11 was given and that Mountain Lion did indeed get rid of it.

I had encountered this issue when upgrading GIMP, and at the time, everything seemed to be working fine with XQuartz. So, there was I thinking to myself “It is just a matter then of re-installing XQuartz and off we go”. How wrong was I! I installed XQuartz, downloaded from here. The first glimpse that things were not quite correct was when I had to tell manually to GIMP the location of X11. Then tried to launch MATLAB and quite quickly the following message popped up:

“X11 does not appear to be installed. X11 version 1.1.3 or greater is required. For OS X 10.5 or later, X11 is available on the OS X installation DVD. Please find and run the Optional Installs.mpkg installer.”

Great thing that Mathworks has told me that, but Apple does not do X11 anymore, so no installing from the DVD, righ?t! Worse still, unlike GIMP, there was no prompt from MATLAB to tell it the location of X11. I tried creating some symbolic links, but this did not work either. Finally, after a lot of fiddling and searching and all, I found a way to run MATLAB successfully. A solution? Oh well here it is:

  1. Install XQuartz
  2. Launch XQuartz and from the menu launch an xterm.
  3. Type the following command first:
  • $MATLAB/bin/matlab -maci

Where $MATLAB is the path to your installation. And voilà!

Incidentally, if you are having problems with the graphics in MATLAB, such as the application crashing when plotting and the like, you can type the following command before launching MATLAB as specified above:

export DYLD_LIBRARY_PATH=/System/Library/Frameworks/JavaVM.framework/Libraries

Let me know how you get on with this and should you find another alternative solution let me know!