From Rizzo_Lab
Revision as of 12:40, 26 August 2008 by Tbalius (talk | contribs) (subpanel in a panel)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

To access the lab version of MATLAB log on to and type the following:

matlab -nojvm

This opens MATLAB without using the java interface (the virtual machine).

Making large plots

First create a new figure, maximize it. Add these commands after the plot() and before making labels and printing. This will create a 1000 x 1000 px plot

 set(gcf,'Position',[1 1 1000 1000]); 

Note that if you have a multi-paneled graph each panel have its own handle.

subpanel in a panel

h = uipanel
h2 = uipanel('Parent',h,'position',[0.4108    0.4096    0.2090    0.2157])

make the background white.

set(h,'BackgroundColor',[1 1 1])
set(h,'ShadowColor',[1 1 1])
set(h2,'ShadowColor',[1 1 1])
set(h2,'BackgroundColor',[1 1 1])

Matlab panel in panel.png