I have data that is 3x200 I need a xbar and r chart with control limits.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Erivelton Gualter
am 19 Nov. 2019
Bearbeitet: Erivelton Gualter
am 19 Nov. 2019
Upload your data. Or a sample data for this task.
Antworten (1)
Mahesh Taparia
am 22 Nov. 2019
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 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!