I have data that is 3x200 I need a xbar and r chart with control limits.
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Erivelton Gualter
il 19 Nov 2019
Modificato: Erivelton Gualter
il 19 Nov 2019
Upload your data. Or a sample data for this task.
Risposte (1)
Mahesh Taparia
il 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 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!