Error about "plotfdesign": Expected a string for the parameter name, instead the input type was 'double'.
1 view (last 30 days)
Show older comments
Hi, I was using the function plotfdesign and using the example in that file but error appears:
g= repmat(fullfact([2 2]),100,1);
g1= find(g(:,1)==1);
g2= find(g(:,1)==2);
x= zeros(size(g,1),1);
x(g1)= normrnd(10,1,numel(g1),1);
x(g2)= normrnd(5,3,numel(g2),1);
H= plotfdesign(x,g);
Error appeared:
Error using notBoxPlot (line 218)
Expected a string for the parameter name, instead the input type was 'double'.
Error in plotfdesign (line 153)
H= notBoxPlot(yy,x(unique(g(rows,1))),0.7*bs,'sdline');
I’m using R2016a. Other people using this function very well, but I do not know what’s wrong with my computer.
1 Comment
Stephen23
on 29 Sep 2017
I put the two lines into try-end block, and it works now, but I still do not know if this will cause unforeseeable problems.
plotfdesign (line 162) try set([H(k).sd], 'Color',0.75*cmap(k,:),'LineWidth',2); end
notBoxPlot (line 218) try params.parse(varargin{:}); end
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!