Guest User

Untitled

a guest
Oct 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. nlm = NonlinearModelFit[data, {x^a Cos[b x + c]}, {a,b,c} ,{x}]
  2.  
  3. params = nlm["BestFitParameters"]
  4. (* a -> 0.0203318, b -> 3085.99, c -> 30.1162} *)
  5.  
  6. models = {nlm, ...}
  7. Table[models[[i]]["BestFitParameters"],{i,1,Length[models]}]
  8.  
  9. a = {1, 2, 3, 4};
  10. a /. x_ :> x^2
  11. (* {1, 4, 9, 16} *)
Add Comment
Please, Sign In to add comment