help with fitlm (least squares fit)
    8 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Douglas Brenner
 le 18 Déc 2018
  
    
    
    
    
    Réponse apportée : Douglas Brenner
 le 19 Déc 2018
            I don't understand how to use fitlm if indeed that's the right function to use.
I want to fit 5 sets of data to the function y = ax^2 + bx + c.
tbl = table(Y,X); yes?
but 
mdl = fitlm(tbl,'model') what do I use for model?
thanks.
5 commentaires
  Image Analyst
      
      
 le 19 Déc 2018
				Douglas's non-Answer moved here since it's not an answer to the original question:
It seems that polyfit is crashing mathlab. 
  Image Analyst
      
      
 le 19 Déc 2018
				If MATLAB itself crashed and shut down completely, then call the Mathworks.
If it's just your script that throws an error with red text in the command window, then most likely there is a problem with your m-file.  Post your data with the paper clip icon, along with code to read it in and call the polyfit() function.
I'm attaching my polyfit demo - perhaps you can adapt it.
Réponse acceptée
Plus de réponses (2)
Voir également
Catégories
				En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



