%
% Example of plot in Matlab controlling various parameters
% Three cycles of sinusoidal voltage at 60 Hz 
%
t=0:1e-4:3/60;vol=sin(2*pi*60*t);
%
% Set sizes
%
fs=14;  % Font size
lw=1;   % Line width for frames
lwp=1;  % Line width for curves
wsize=[680 558 560 420];  % size and placement of figure
% default for 1920x1080 screen, min/max = [0 0 1920 1080])
% wsize=[left edge,lower edge,width,height] 0,0 is left,bottom
vmax=1.2; % Set extra space on the vertical axis
%
% Plot
%
figure(1)
set(gcf,'Position',wsize);  
plot(t,vol,'b','Linewidth',lwp)
set(gca,'fontsize',fs,'Linewidth',lw);
axis([0 t(end) -vmax vmax])
xlabel('Time(s)')
ylabel('Voltage (V)')