Error message when using notBoxPlot and how to use notBoxPlot when columns are different length

2 ビュー (過去 30 日間)
Hello! I am having trouble graphing my data using notBoxPlot because the columns have different length. I will really appreciate the help- thank you! Here is what I have so far.
newfile = table2array(file);
Y = [newfile(:,1);newfile(:,2);newfile(:,3);newfile(:,4)];
X = ones(52,1);
X = [X;2*X;3*X;4*X];
figure
notBoxPlot(Y,X)

回答 (1 件)

Pratheek Punchathody
Pratheek Punchathody 2021 年 1 月 22 日
As per my understanding "notBoxPlot" is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation.
As a work around MATLAB has a function "boxplot()" which can create box plot of the data. Also this function has the capability to create Box Plots for vectors of varying length. Refer to the documentation on Box Plots for Vectors of Varying Length for further details.

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by