I have data that is 3x200 I need a xbar and r chart with control limits.
4 ビュー (過去 30 日間)
古いコメントを表示
I have the data as a .m file. I copied the data from the varibles tab and pasted it into the varible x. So my x varible is a 3x200. Then this is my code to attempt to get the charts needed. plot= controlchart(x,'charttype',{'xbar','r'}) I then get this error,
Error using controlchart>errorcheck (line 972)
WIDTH cannot be larger than the number of points.
Error in controlchart (line 228)
errorcheck(X,ngroups,label,lambda,limits,parent,cctypes,nsigma,...
Error in Untitled (line 2)
plot= controlchart(x,'charttype',{'xbar','r'})
and cannot figure out how to fix it. Anything helps! Thank You!!
2 件のコメント
Erivelton Gualter
2019 年 11 月 19 日
編集済み: Erivelton Gualter
2019 年 11 月 19 日
Upload your data. Or a sample data for this task.
回答 (1 件)
Mahesh Taparia
2019 年 11 月 22 日
Hi Brady
You are getting an error of some size mismatch of your input data. The variable ‘x’ is having a size of 3X200. The error can be overcome by replacing x by transpose of x in controlchart function as the size becomes 200x3 and width criteria can be satisfied. For example,
plot= controlchart(transpose(x),'charttype',{'xbar','r'})
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!