日志
-
- 分享
matlab中二项式概率密度函数binopdf
-
kongfeng0824 2013-11-23 16:35
-
Syntax Y = binopdf(X,N,P) Examples A QualityAssurance inspector tests 200 circuit boards a day. If 2% of the boards have defects,what is the probability that the inspector will find no defectiveboards on any given day? binopdf(0,200,0.02) ans = 0.0176 What is the most likely number of defec ...
-
个人分类: Matlab Study|931 次阅读|0 个评论
-
- 分享
matlab中二项式累积分布函数binocdf
-
kongfeng0824 2013-11-23 16:25
-
Syntax Y = binocdf(X,N,P) Examples If a baseball team plays 162 games in a season and has a 50-50chance of winning any game, then the probability of that team winningmore than 100 games in a season is: 1 - binocdf(100,162,0.5) The result is 0.001 (i.e., 1-0.999).If a team wins 100 or more games i ...
-
个人分类: Matlab Study|789 次阅读|0 个评论
-
- 分享
matlab中二项式参数估计函数binofit
-
kongfeng0824 2013-11-23 15:56
-
Syntax phat = binofit(x,n) = binofit(x,n) = binofit(x,n,alpha) Examples This example generates a binomial sample of 100 elements, wherethe probability of success in a given trial is 0.6, and then estimatesthis probability from the outcomes in the sample. r = binornd(100,0.6); = binofit(r ...
-
个人分类: Matlab Study|444 次阅读|0 个评论
-
- 分享
matlab中列出多项式的系数函数coeffs
-
kongfeng0824 2013-11-21 21:52
-
Syntax C = coeffs(p) C = coeffs(p,x) = coeffs(p,x) Examples List the coefficients of the following single-variable polynomial: syms x t = 16*log(x)^2 + 19*log(x) + 11; coeffs(t) The result is: ans = List the coeff ...
-
个人分类: Matlab Study|1404 次阅读|0 个评论
-
- 分享
matlab中因式分解函数factor
-
kongfeng0824 2013-11-21 21:50
-
Syntax factor(X) Examples Factorize the two-variable expression: syms x y factor(x^3-y^3)ans = (x - y)*(x^2 + x*y + y^2) Factorize the expressions that form a vector: syms a b factor( )ans = Factorize the symbolic number: factor(sym('12345678901234567890'))an ...
-
个人分类: Matlab Study|1372 次阅读|0 个评论
-
- 分享
matlab中交叉功率谱密度函数cpsd
-
kongfeng0824 2013-11-21 21:34
-
Syntax Pxy = cpsd(x,y) Pxy = cpsd(x,y,window) Pxy = cpsd(x,y,window,noverlap) = cpsd(x,y,window,noverlap,nfft) = cpsd(x,y,window,noverlap,nfft,fs) =cpsd(...,'twosided') cpsd(...) Examples Generate two colored noise signals and plot their CPSD. Specify a length 1024 FFT and a 500 point ...
-
个人分类: Matlab Study|2032 次阅读|0 个评论
-
- 分享
matlab中模糊C-均值聚类函数fcm
-
kongfeng0824 2013-11-21 21:27
-
Syntax = fcm(data,cluster_n) Examples data = rand(100, 2); = fcm(data, 2); plot(data(:,1), data(:,2),'o'); maxU = max(U); index1 = find(U(1,:) == maxU); index2 = find(U(2, :) == maxU); line(data(index1,1),data(index1, 2),'linestyle','none',... 'marker','*','color','g'); line(d ...
-
个人分类: Matlab Study|289 次阅读|0 个评论
-
- 分享
matlab中年一年之中的天数函数yeardays
-
kongfeng0824 2013-11-21 19:40
-
Syntax Days = yeardays(Year, Basis) ExamplesDays = yeardays(2000) Days = 366 Days = yeardays(2000, 1) Days = 360
-
个人分类: Matlab Study|152 次阅读|0 个评论
-
- 分享
matlab中的年函数year
-
kongfeng0824 2013-11-21 19:38
-
Syntax Year = year(Date) Year = year(Date, F) Examples Year = year(731798.776) or Year = year('05-Aug-2003') returns Year = 2003
-
个人分类: Matlab Study|118 次阅读|0 个评论
-
- 分享
matlab中的星期函数weeknum
-
kongfeng0824 2013-11-21 19:36
-
Syntax = weeknum(D) = weeknum(D, W, E) Examples You can determine the week of the year using a serial date number N = weeknum(728647) N = 52 or a date string N = weeknum('19-Dec-1994') N = 52
-
个人分类: Matlab Study|247 次阅读|0 个评论