how to use control chart to plot a single value

Hi , i'm trying to use the default controlchart of matlab but i face an Error every time i get a single value i plot, the result appear but with an error
% points is a vector of values
% mylimits is LCL and UCL and mean
Chart = controlchart(points,'charttype', 'i','limits', mylimits,'width',1);
and i get this error each time i have to plot a single value
Error using set
Value must be a 1x2 vector of numeric type in which the second
element is larger than the first and may be Inf
Error in controlchart (line 362)
set(allax,'xlim',[ind(1)-dx, ind(end)+dx]);
i'm still new to this so, i'm sorry if it's an irrelevant question !
i tried with using an 'xbar' type but i get even more errors !
thank you for your consideration
Best regards

Réponses (0)

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by