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