Good job! However, I may have found a bug related to cell code mode.
Consider this piece of code
s1 = 'hello\n';
s2 = 'h\n';
if you run it as a normal script (using F5) everything is fine. But if you run the same code in cell mode (using CTRL+Enter) the result is not what you expected.
This is driving me crazy. I use Matlab R2013b and I use lots of cell code in my scripts, so this is giving me some annoyance.
This is even more complicated since if you try to run the code in debug mode, the problem doesn't show up anymore!
I think the problem is related to the fact that, when using cell code mode, the name of the script file is not passed to the command window (while it appears in the cmd window when using F5) and this in some way reflects in the computation of the current position in the command window.
14 Apr 2014
Plot a google map on the background of the current figure using the Static Google Maps API.
thank you a lot for your support! I tried your suggestion and with the rendering setting of set(gcf,'renderer','zbuffer'), the background (map) + transparent settings vanished again.
set(gcf,'renderer','opengl') and exporting with export_fig.m though works for me :)
This is a great submission! A minor change was required for my application. Reason: The triangulation tends to be slightly over-refined on complex boundaries. For some applications this is a bonus, but for hydrodymanic modelling it is not really necessary. I therefore replaced the line in 'quadtree.m' (about line 64) which reads:
L = 2.0*dist2poly(wm,edgexy,2.0*len);
with the following:
This helps prevent over refinement and a nice mesh. Excellent work Darren!