How to curve fit an equation with sigma function
    9 views (last 30 days)
  
       Show older comments
    
Dear all,
I would like to get coefficient C0, C1....CN from the below equation,

I have enclosed herewith an excel having x and y co-ordinates. 
Can anybody please let me know how to write this equation in 'custom equation' option in curve fitting tool or is there any other way to do it?
0 Comments
Answers (2)
  Catalytic
      
 on 27 Jul 2019
        C = polyfit( sqrt( x.^2+y.^2) , Z, N)
4 Comments
  Matt J
      
      
 on 29 Jul 2019
				
      Edited: Matt J
      
      
 on 29 Jul 2019
  
			As you mentioned as its a higher order polynomial I will not use polyfit due to higher perecentage error.
No, that is not what I said. What I said was "It's not that polyfit is better or worse at fitting high order polynomials. It's just that high order polynomials are typically a bad thing...". 
Stop using high order polynomials. Use splines instead.
See Also
Categories
				Find more on Linear and Nonlinear Regression in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


