Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Default paper size

8 views
Skip to first unread message

Troels Pedersen

unread,
Oct 28, 2003, 4:37:08 AM10/28/03
to
Hi

How can I set the default paper size? Currently whenever i want to
print something, Matlab starts out with usletter paper. As we european
folks primarily use A4 paper this is very anoying!
I tried to find the answer in the mathworks homepage and found out that
there was a property for chosing paper type. I added "Default" and tried:

>> set(gca, 'DefaultPaperType','A4')
??? Error using ==> set
Can't resolve object type in default property 'PaperType'.

What can I do to change the default paper?

Best regards Troels Pedersen

-----
Stud. Polyt. Troels Pedersen
Aalborg University * Institute of Electronic Systems
Frederik Bajers Vej 7 A * Room A3-219
DK-9220 Aalborg Oe * DENMARK

Private: Troels Pedersen * Sonjavej 18 B
DK-9000 * Aalborg * DENMARK * Phone +45 98 78 09 49

Web-page: http://kom.auc.dk/~tped00/

herbert(DOT)ramoser

unread,
Oct 28, 2003, 5:01:06 AM10/28/03
to
Troels Pedersen wrote:

PaperType is a figure property, so according to the Matlab way of
thinking you must set DefaultFigurePaperType.

-Herbert

Titus Edelhofer

unread,
Oct 28, 2003, 7:29:33 AM10/28/03
to
Hi Troels
if you are working on windows, there is a file called matlabrc (to
edit in MATLAB: just type >> edit matlabrc)
there are some lines
%% Uncomment the next line to use Letter paper and inches
%defaultpaper = 'usletter'; defaultunits = 'inches';

%% Uncomment the next line to use A4 paper and centimeters
%defaultpaper = 'A4'; defaultunits = 'centimeters';

usually in the lines following the default size is set according to
some ISO country codes, but you can always uncomment the
line with 'A4' to set the default.

Titus

"Troels Pedersen" <tpe...@kom.auc.dk> wrote in message
news:Pine.LNX.4.33.031028...@scovery-ws08.kom.auc.dk...

Michael Salloker

unread,
Oct 28, 2003, 7:48:40 AM10/28/03
to
Hello Titus,


what to do with matlabrc.m (or startup.m) if I am working with a
concurrent license in a network, i.e. a local installation on a
(windows) pc. I chang e the pc and also the users on the pc are
changing.


Michael

herbert(DOT)ramoser

unread,
Oct 28, 2003, 8:01:26 AM10/28/03
to
Michael Salloker wrote:

Most likely you have roaming profiles or some kind of home directory. In
this case you can set the startup path of Matlab to your home directory
where you can also put startup.m This should give you the same Matlab
environment on any PC.

-Herbert

Steven Lord

unread,
Oct 28, 2003, 8:44:12 AM10/28/03
to

Hmm ... in this case, changing matlabrc is probably not the best choice.
Instead, add this line to your startup.m (creating one if necessary:)

set(0, 'DefaultFigurePaperType','A4')

By default, all your figures will have their PaperType property set to use
A4 paper, but no one else will be affected.

--
Steve Lord
sl...@mathworks.com


0 new messages