how can i creat Box plot

hi , i want to create a box plot for a matrix with 20 column and 1500 rows. one box per column. my data are at a excel file ; is the following code is true ?
clear
clc
m =xlsread('data.xlsx');
figure;
boxplot(m);
each time i run this code , Matlab gives me Error , what is wrong whit this code ? thanks

5 件のコメント

Michael Haderlein
Michael Haderlein 2014 年 8 月 16 日
Please tell us
- the error message
- size(m)
baran
baran 2014 年 8 月 16 日
size(m)=[1500 20] error message: Attempt to execute SCRIPT boxplot as a function: D:\....
Error in 'mfile name' (line 5) boxplot(m)
baran
baran 2014 年 8 月 16 日
size(m)=[1500 20]
error message:
Attempt to execute SCRIPT boxplot as a function: D:\....
Error in 'mfile name' (line 5)
boxplot(m)
Michael Haderlein
Michael Haderlein 2014 年 8 月 16 日
I suppose the part of the path you have deleted links to a self-written file named "boxplot.m". Matlab will try to execute this file (which seems to be a script) instead of the original function. You should rename the respective file.
baran
baran 2014 年 8 月 16 日
you are right . thanks so much

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

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2014 年 8 月 16 日

コメント済み:

2014 年 8 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by