Home > SPlaC v1_0 > Mie > PWE > PwePlotDdepSurfAve.m

PwePlotDdepSurfAve

PURPOSE ^

Plots the results of PweEmap or PweVolProperties in terms of distance dependence of surface averages

SYNOPSIS ^

function PwePlotDdepSurfAve(CstEmap,sLinLog)

DESCRIPTION ^

 Plots the results of PweEmap or PweVolProperties in terms of distance dependence of surface averages

 Parameters:
 - CstEmap: Cell of stEmap structures
            or simply a stEmap structure if only one.

 This file is part of the SPlaC v1.0 package (copyright 2008)
 Check the README file for further information

EXAMPLE OF OUTPUT ^

Example figure output

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 if nargin<2, sLinLog='log'; end
0002 
0003 nNbMap=length(CstEmap);
0004 
0005 % create, position, and resize figure
0006 figure('Name','Distance dependence of LFIEF averages');
0007 if ~strcmpi(sLinLog,'linear')
0008     set(axes,'Yscale','log')
0009 end
0010 hold on;
0011 % loop through CstEmap and do plots
0012 for nn=1:nNbMap
0013     if isstruct(CstEmap) % if single structure stEmap as argument
0014         lambda0=CstEmap.lambda0;
0015         rVec=CstEmap.r;
0016         plot(rVec,CstEmap.MLocPerpAve,rVec,CstEmap.MLocParaAve, ...
0017             rVec,CstEmap.MLocAve,rVec,sqrt(CstEmap.F0E4Ave));
0018     else % if cell of structure stEmap as arguments
0019         lambda0=CstEmap{1}.lambda0; % same lambda0 for all in principle
0020         % lambda0 is used only for figure legend anyway
0021         rVec=CstEmap{nn}.r;
0022         plot(rVec,CstEmap{nn}.MLocPerpAve,rVec,CstEmap{nn}.MLocParaAve, ...
0023             rVec,CstEmap{nn}.MLocAve,rVec,sqrt(CstEmap{nn}.F0E4Ave));
0024     end
0025 end
0026 
0027 xlabel('distance from origin, r [nm]');
0028 ylabel('Average field EFs');
0029 legend('<M_{Loc}^{perp}>','<M_{Loc}^{//}>','<M_{Loc}>','(F_{E4}^0)^{1/2}');
0030 title(['Distance dependence of LFIEF averages for \lambda=' num2str(lambda0) 'nm']);
0031 hold off;
0032

This web page is part of the SPlaC package © 2008. Contact: Eric Le Ru
Generated on Wed 03-Dec-2008 11:10:14 by m2html © 2003 (adapted)