So if I want to run this script
uv = rand(100,2);
w = sin(sum(uv,2));
p = polyfitn(uv,w,'u, v');
if exist('sympoly') == 2
polyn2sympoly(p)
end
if exist('sym') == 2
polyn2sym(p)
end
do I have to "call" the script "polyfitn" with a specific command?
Generaly what should I do in order to run the above script while polyfitn is a custom script of a user?
The function polyfitn will probably help me but I don't know how to install this function.
I downloaded the file and I pasted it in the toolbox subfolder of Program files/Matlab....
However when I run this
uv = rand(100,2);
w = sin(sum(uv,2));
p = polyfitn(uv,w,'u, v');
if exist('sympoly') == 2
polyn2sympoly(p)
end
if exist('sym') == 2
polyn2sym(p)
end
it returns
??? Undefined function or method 'polyfitn' for input arguments of type 'double'.
Error in ==> testxk at 3
p = polyfitn(uv,w,'u, v');