Can't assign output from a function from a toolbox
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 23 de Sept. de 2013
Is it possible that there are no o < mu ?
Hassan F
el 23 de Sept. de 2013
dpb
el 23 de Sept. de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Structures en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!