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

📄 cdfplotmed.m

📁 fading 在无线中的应用
💻 M
字号:
function cdfplotmed(x,plottype)% DESCRIPTION cdfplotmed(x)%  CDF plot of the input matrix for each%  column separately. By use of a linear scale%  the middle part of the input is highlighted.% INPUT%  x --  a real matrix (no Nans or Infs)%  plottype --  String describing the plot, e.g. 'r*'%               plots red stars.% OUTPUT%  only the plot% TRY%  cdfplotmed(randn(10000,1))% by Magnus Almgren 000512x = sort(x);ytemp = linspace(0,1,1+2*size(x,1))';y = adjsiza(ytemp(2:2:end-1),x);if exist('plottype', 'var')    plot(x,y*100,plottype)else    plot(x,y*100)end;set(gca,'ylim',[0 100]); % reduce the yaxis% set proper labelsset(gca,'ytick',0:10:100);ylabel('C.D.F.  [%]');grid on;if nargin > 2 % Add some statistic information. s1 = ['mean ' sprintf('%8.2g',mean(x))]; s2 = ['std  ' sprintf('%8.2g',std(x))]; s3 = ['max  ' sprintf('%8.2g',max(x))]; s4 = ['min  ' sprintf('%8.2g',min(x))]; s(1,1:length(s1)) = s1; s(2,1:length(s2)) = s2; s(3,1:length(s3)) = s3; s(4,1:length(s4)) = s4; lim = axis; text(.9*lim(1)+.1*lim(2),80,s);end

⌨️ 快捷键说明

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