Prev: ML 2007a MEX problems with MSVC 8
Next: imscrollpanel
From: mees oylulan on 24 Apr 2007 19:45 Hi, I wonder can anyone tell me why I get the error message: >>>>>>> Error message <<<<<< Error using ==> sym.maple Error, integer too large in context Error in ==> sym.double at 23 ValueOfS = str2num(map2mat(char(maple('evalf',S(:),d)))); Error in ==> n1th_deriv at 63 gx_6(:,idx) = double(gx6); >>>> when I try to run the function below.In the function xx is a vector of length 16384 and maximum value 3.1413. function gx = n1th_deriv(xx) % wm = 2*pi*fm = 2*pi*5000 % xx = wm * (t - (0.5*Ts)) % Find the symbolic expression for the 6th order % derivative of |cos(x)|^7 g6 = diff('(abs(cos(x)))^7','x',6); for n = 1:1:length(xx) % Assign x with a numeric value from the vector xx x = xx(:,n); % Substitute for x in the symbolic expressions gx6 = subs(g6); % Find the numeric value of the symbolic expression gx_6(:,idx) = double(gx6); end % Return result gx = gx_6; Thanks
From: J�r�me on 25 Apr 2007 05:20 Hi, read this : <http://www.mathworks.com/support/solutions/data/1-1AG3M.html> J�r�me
|
Pages: 1 Prev: ML 2007a MEX problems with MSVC 8 Next: imscrollpanel |