From: Fabrizio Bonetto on
Hi everyone,
I've used the information contains in http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/br5w5e9-16.html#br57htr-5 for generating a standalone application.
I use windows XP and Matlab R2007a. My "MagicExample.exe" properly works but if I do a simple change into a program compares an error as follow:
______________________________________________

dos('MagicExample(2,3)','-echo')
??? Input argument "p" is undefined.

Error in ==> magicsquare at 11

MATLAB:inputArgUndefined

ans =

-1
______________________________________________


Here's my changes:

______________________________________________
function m = magicsquare(n,p)
%MAGICSQUARE generates a magic square matrix of the size specified
% by the input parameter n.

% Copyright 2003-2005 The MathWorks, Inc.

if ischar(n)
n=str2num(n);
end

if ischar(p)
p=str2num(p);
end
m = magic(n)*p
______________________________________________

Can you help me?

Thanks for your attention.
Regards,
Fabri
 | 
Pages: 1
Prev: Toolbox Image processing
Next: Read a *. File