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

1 回表示 (過去 30 日間)
raym
raym 2017 年 9 月 29 日
コメント済み: Stephen23 2017 年 9 月 29 日
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 Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by