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!