using the "vline" function in a histogram

2 ビュー (過去 30 日間)
Rosie
Rosie 2017 年 5 月 19 日
回答済み: Walter Roberson 2017 年 5 月 19 日
I'm trying to insert a break point horizontal line in 2 histograms. The line commented out in the script below didn't work. What am I doing wrong in terms of using vline? Thanks.
% control condition
nbins = 15;
histfit (resultC{13}*100, nbins)
title('Probability Distribution for Control Condition')
xlabel('Percentage Accuracy')
ylabel('Number of Permutations')
*% h = vline(resultC{3},'g','Classification Accuracy')*
% experimental condition
figure()
nbins = 15;
histfit (resultE{13}*100, nbins)
title('Probability Distribution for Experimental Condition')
xlabel('Percentage Accuracy')
ylabel('Number of Permutations')
  1 件のコメント
Steven Lord
Steven Lord 2017 年 5 月 19 日
Define "didn't work." Did it throw an error (and if so, what was the full text of that error message, everything in red?) Did it issue a warning (and if so, everything in orange?) Did it do something else (and if so, explain in more detail?)

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 5 月 19 日
vline() is not a Mathworks-provided function.
You can find vline as part of several File Exchange contributions, including https://www.mathworks.com/matlabcentral/fileexchange/18796-advanced-hline-and-vline

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by