Use a for loop to run an equation on set of data points
1 回表示 (過去 30 日間)
古いコメントを表示
I currently have a set of 10 (x,y) data points. I have an equation similar to this: y = c * (sin(x-B)) where c and B are unknown variables. I want to run this equation on every data point using a for loop and then have matlab give the values of the unknown variables for the best fit line produced from running this equation on every data point. This is very similar to using the cftool however when using that tool I got an error message saying the equation couldn't be evaluated. Furthermore, eventually I will have over 100 data sets that all need to be run through the equation. Therefore, I am hoping to use nested for loops to acheive this. Any help would be greatly appreciated, thank you!
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!