how to plot 50 percentile?
3 ビュー (過去 30 日間)
古いコメントを表示
filename = 'Book11.csv';
M = readtable(filename);
disp(M)
h=M{:} %i have to select all data for phi from 120 240 only and plot 50 percentile
a=M{:,3}
b=90;
f=unique(M(:,1)); %freq
rcs=r{:,4};
r = rcs(find(a >=120 & a <= 240))
size(r)
t=prctile(r,50)
plot(a,t,'k'); hold on; grid on
plot(a,t,'r')
legend('original','average')
0 件のコメント
回答 (1 件)
Voss
2024 年 3 月 6 日
filename = 'Book11.csv';
M = readtable(filename);
disp(M)
a=M{:,3};
rcs=M{:,4};
idx = a >=120 & a <= 240;
p = a(idx);
r = rcs(idx);
t=prctile(r,50)
plot(a,rcs,'.k'); hold on; grid on
plot(p,r,'gs')
plot([120 240],[t t],'r')
legend('all','120<=phi<=240','median')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Descriptive Statistics and Visualization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!