Am trying to run a program using Duo Core2 processor. I am getting errors which I donot know to solve.

Am trying to run a program using Duo Core2 processor. I am getting errors which I donot know to solve.
* Undefined function 'statsizechk' for input arguments of type 'double'.
Error in normrnd (line 31) [err, sizeOut] = statsizechk(2,mu,sigma,varargin{:});
Error in program (line 172) tt=normrnd(ccm(i),0.1);*
The same program runs in another computer without errors. Should I set some parameters to execute in duo core processor.
Kindly help to proceed

Respuestas (1)

You probably forgot to copy the function called statsizechk from the other computer, or it is not on your matlab search pad. Copy this file to your computer, and you should be fine.

6 comentarios

The file is there is the actual folder. but all the lines in the code are commented. Is that right?
function [err, commonSize, numElements] = statsizechk(nparams,varargin)
...
% Copyright 1993-2004 The MathWorks, Inc.
...
[EDITED, Jan, please do not post copy righted code]
It seems like there is a missing compiled MEX file. Did you try to copy a toolbox, which you do not have a license for?
no i dint copy the toolbox..The toolbox is there with the installation. it had a license. Is there any way to compile the mex file.
The compiled MEX file is expected to be installed with Matlab. When the function works properly on one computer, but not on the other, the most likely problem is an incomplete installation of Matlab. Then a clean solution is to re-install Matlab.
O..Ok I will try to re-install Matlab. :) Thank u so much
Instead of re installing i have copied the .m file and also the compiled mex file to my working folder. then it worked. :)

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Sept. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by