Rank: 1003 based on 107 downloads (last 30 days) and 2 files submitted
photo

Salman Rogers

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Salman View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Feb 2007 Published M-Files 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers weighted, 2d, probability, statistics, polynomial, fitting evaluation 75 5
  • 4.83333
4.8 | 6 ratings
02 Jan 2007 polyfitweighted Simple function to calculate a polynomial best fit of 1D data Y with array of weights W (which must Author: Salman Rogers fit, best, optimization, polymonial, weights, weighted 32 4
  • 1.0
1.0 | 1 rating
Comments and Ratings on Salman's Files View all
Updated File Comment by Comments Rating
19 Aug 2009 polyfitweighted Simple function to calculate a polynomial best fit of 1D data Y with array of weights W (which must Author: Salman Rogers Matt

In the help comments for polyfitweighted2, it says that Z and W should be of size [length(X) length(Y)]

However, throughout the code (both polyfitweighted2 and polyval2, Z and W are treated as though of size
 [length(Y) length(X)].

04 Aug 2009 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers E, K

Very useful. Matlab should build it in.

25 Jun 2009 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers Kruse, Ryan

This is great! Thanks!

I made a slight modification to deal with NaN values. I changed this:
x = x(:);
y = y(:);
z = z(:);
w = w(:);

to this:
x = x(~isnan(z));
y = y(~isnan(z));
z = z(~isnan(z));
w = w(~isnan(z));

16 Jun 2009 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers Rubshtein, Andrey

Dear Salman, first of all thank you for your submission.
Nevertheless, I have a minor remark - In many applications (x,y,z) triples are not necessarily measured on a grid. For example: I have:
(1,1,10), (1,2,5) , (2,1,7) , but i have no clue what is the value of z at (2,2).

12 Dec 2007 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers Liu, Feng

Good work!

Top Tags Applied by Salman
best, fit, leastsquares, optimization, polymonial
Files Tagged by Salman View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Feb 2007 Published M-Files 2D Weighted Polynomial Fitting and Evaluation Two scripts: polyfitweighted2 fits 2D data with weights, and polyval2 evaluates the 2D polynomial Author: Salman Rogers weighted, 2d, probability, statistics, polynomial, fitting evaluation 75 5
  • 4.83333
4.8 | 6 ratings
02 Jan 2007 polyfitweighted Simple function to calculate a polynomial best fit of 1D data Y with array of weights W (which must Author: Salman Rogers fit, best, optimization, polymonial, weights, weighted 32 4
  • 1.0
1.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com