Can't assign output from a function from a toolbox
Show older comments
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 Comments
Walter Roberson
on 23 Sep 2013
Is it possible that there are no o < mu ?
Hassan F
on 23 Sep 2013
dpb
on 23 Sep 2013
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.
Accepted Answer
More Answers (0)
Categories
Find more on Data Structures in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!