WNORMSTAT Mean and variance for the Normal distribution. CALL: [m,v] = wnormstat(m0,v0) m, v = the mean and variance, respectively m0, v0 = parameters of the Normal distribution. Mean (m) and variance (v) for the Normal distribution is m=m0 and v=v0; Example: [m,v] = wnormstat(5,3) % Trivial!
Display message and abort function. |
01 function [m,v]= wnormstat(m0,v0); 02 %WNORMSTAT Mean and variance for the Normal distribution. 03 % 04 % CALL: [m,v] = wnormstat(m0,v0) 05 % 06 % m, v = the mean and variance, respectively 07 % m0, v0 = parameters of the Normal distribution. 08 % 09 % Mean (m) and variance (v) for the Normal distribution is 10 % 11 % m=m0 and v=v0; 12 % 13 % Example: 14 % [m,v] = wnormstat(5,3) % Trivial! 15 16 if nargin < 2, 17 error('Requires two input arguments.'); 18 end 19 20 m = m0; 21 v = v0; 22 23
Comments or corrections to the WAFO group