Rank: 48304 based on downloads (last 30 days) and 0 files submitted
photo

Alexandros alex

E-mail
Company/University
NTUA

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Alexandros View all
Updated File Comments Rating
16 Nov 2009 Polyfitn N-d polynomial regression model Author: John D'Errico

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?

15 Nov 2009 Polyfitn N-d polynomial regression model Author: John D'Errico

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');

What's wrong?

Contact us at files@mathworks.com