image thumbnail

Measures of Effect Size Toolbox

by

 

31 Jul 2011 (Updated )

Computes diverse effect size statistics including confidence intervals

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

pvpmod(x)
function pvpmod(x)
% PVPMOD             - evaluate parameter/value pairs
% pvpmod(x) assigns the value x(i+1) to the parameter defined by the
% string x(i) in the calling workspace. This is useful to evaluate 
% <varargin> contents in an mfile, e.g. to change default settings 
% of any variable initialized before pvpmod(x) is called.
%
% (c) U. Egert 1998

%############################################
% this loop is assigns the parameter/value pairs in x to the calling
% workspace.

if ~isempty(x)
   for i = 1:2:size(x,2)
      assignin('caller', x{i}, x{i+1});
   end;
end;

%############################################

Contact us