Can't assign output from a function from a toolbox
이전 댓글 표시
I am having problem when I try to store rmabackadj function's output to a variable. The function works properly when no output variable is assigned. rmabackadj is a function from bioinformatics toolbox.
So the issue is when I try to run the following it works properly:
rmabackadj(myprobeData.PMIntensities)
But when I try to run the following I get an error:
>> A = rmabackadj(myprobeData.PMIntensities)
Warning: Colon operands must be real scalars.
> In rmabackadj>findMaxDensity at 255
In rmabackadj at 164
Error using ksdensity>parse_args (line 162)
X must be a non-empty vector.
Error in ksdensity (line 114)
[axarg,yData,n,ymin,ymax,xispecified,xi,u,m,kernelname,...
Error in rmabackadj>findMaxDensity (line 255)
[f, x] = ksdensity(z, min(z):(max(z)-min(z))/npoints:max(z), 'kernel', 'epanechnikov');
Error in rmabackadj (line 164)
mu = findMaxDensity( o(o < mu));
Someone else asked this question a while ago but there is no comment: http://www.mathworks.com/matlabcentral/answers/50323-affyrma-error-with-mfilename
I searched for it online as well, but I couldn't find any result. Does anybody have any idea about the cause of this error?
PS: When I assign ans variable to a new variable, it is properly assigned.
A = ans
댓글 수: 5
Walter Roberson
2013년 9월 23일
Is it possible that there are no o < mu ?
Hassan F
2013년 9월 23일
dpb
2013년 9월 23일
Sounds like time to report your findings to official TMW support at mathworks.com -- maybe they can advise you on a workaround given that you've apparently debugged the cause if you can't see a suitable patch knowing the problem and (I presume) the correct response that should be returned.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!