Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Variance.m
Package: 现代通信系统matlab版源代码.zip [view]
Upload User: loeagle
Upload Date: 2013-03-02
Package Size: 1236k
Code Size: 1k
Category:
Communication Document
Development Platform:
Matlab
- 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)];
- end
- args=[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]);