createPlot

PURPOSE ^

Plotting template

SYNOPSIS ^

function createPlot(x1, y1, xLabel, yLabel, Title)

DESCRIPTION ^

 Plotting template

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Plotting template
0002 function createPlot(x1, y1, xLabel, yLabel, Title)
0003 
0004 % Create figure
0005 figure1 = figure;
0006  
0007 % Create axes
0008 axes1 = axes(...
0009   'FontName','Times New Roman',...
0010   'FontSize',14,...
0011   'Parent',figure1);
0012 box('on');
0013 hold('all');
0014  
0015 % Create plot
0016 plot1 = plot(...
0017    x1,y1,...
0018   'LineWidth',2.5,...
0019   'Marker','o',...
0020   'MarkerSize',10,...
0021   'MarkerEdgeColor',[0 0 0],...
0022   'MarkerFaceColor',[0 1 0]);
0023  
0024 % Create xlabel
0025 xlabel(xLabel,...
0026       'FontName','Times New Roman',...
0027       'FontSize',14);
0028  
0029 % Create ylabel
0030 ylabel(yLabel,...
0031        'FontName','Times New Roman',...
0032        'FontSize',14);
0033  
0034 % Create title
0035 title(Title,...
0036      'FontName','Times New Roman',...
0037      'FontSize',14);
0038

Generated on Wed 08-Jul-2009 18:57:55 by m2html © 2003