Error about "plotfdesign": Expected a string for the parameter name, instead the input type was 'double'.

1 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2017-9-29
mendel's "Answer" moved here:
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

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by