Skip to content

Instantly share code, notes, and snippets.

@kcmckell
Created May 22, 2014 19:41
Show Gist options
  • Select an option

  • Save kcmckell/1cf0f56a11ea40e88d62 to your computer and use it in GitHub Desktop.

Select an option

Save kcmckell/1cf0f56a11ea40e88d62 to your computer and use it in GitHub Desktop.
My Matlab customization script that is run at startup.
% startup.m
disp('%%%%%%%%%%%%%%%%');
disp('Startup Commands in:');
disp('C:\Users\Clay\Documents\MATLAB\startup.m');
disp('To undock figures, try:');
disp('set(0,''DefaultFigureWindowStyle'',''modal'')');
set(0,'DefaultFigureWindowStyle','docked');
set(0,'DefaultTextInterpreter','latex');
set(0,'DefaultTextFontSize',16);
set(0,'DefaultLineLineWidth',2);
set(0,'DefaultFigureColor',[1 1 1]);
set(0,'DefaultAxesFontUnits','points');
set(0,'DefaultAxesFontSize',12);
setpref('Internet', 'E_mail', 'YOURMAIL@gmail.com');
setpref('Internet', 'SMTP_Username', 'YOURMAIL@gmail.com');
setpref('Internet', 'SMTP_Password', 'YOURPASSWORD');
setpref('Internet', 'SMTP_Server', 'smtp.gmail.com');
props = java.lang.System.getProperties;
props.setProperty('mail.smtp.auth','true');
props.setProperty('mail.smtp.socketFactory.class', 'javax.net.ssl.SSLSocketFactory');
props.setProperty('mail.smtp.socketFactory.port', '465');
disp('%%%%%%%%%%%%%%%%');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment