⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 variance.m

📁 Contemporary communication system一書之matlab範例程式
💻 M
字号:
function v=variance(funfcn,a,b,tol,p1,p2,p3)% EXPECTED Finds the variance of a random variable %	   with probability density function 'funfcn' and %	   support [a,b].% 	   Y=VARIANCE('F',A,B,TOL,P1,P2,P3), finds the variance % 	   of the density function F defined in an m-file. The% 	   function can contain up to three parameters,P1,P2,P3.%	   tol=the relative error.args=[];for n=1:nargin-4  args=[args,',p',int2str(n)];endargs=[args,')'];funfcn1='x_fnct';e=eval(['quad(funfcn1,a,b,tol,[],funfcn',args]);newfun = 'x_a2_fnct' ;v=eval(['quad(newfun,a,b,tol,[],funfcn,', num2str(e), args]);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -