📄 qqplot.m
字号:
function qqplot(x,y,ps);%QQPLOT Plot empirical quantile vs empirical quantile %% qqplot(x,y,ps)%% If two distributions are the same (or possibly linearly % transformed) the points should form an approximately straight % line. Data is x and y. Third argument ps is an optional plot % symbol.%% See also QQNORMif nargin<3, ps = '*'; endx = sort(x);y = sort(y);if length(x) < length(y) n = length(x); plot(x, quantile(y, ((1:n)-0.5)/n, 1), ps)elseif length(y) < length(x) n = length(y); plot(quantile(x, ((1:n)-0.5)/n, 1), y, ps)else plot(x,y,ps)endxlabel('Data X')ylabel('Data Y')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -