i want to make a a graphic where in x there is the first column and in y the second, i’ve tried several ways and i didn’t succeded on it.
Thanks for answering. I put the file below.
I have an another problems with NonLinearRegression
Forgive my ignorance but i don’t understand why the program doesn’t fit my data, the number problem was fixed, but mathematica says that the list of numbers is not a list and it can’t do the fit. I put below the program to see better what i mean.
you must have a typo (or data is undefined). Here is your file – since I do not have your data file, I skipped that step. Your fit is numerically unstable because you will get stuck in local minima – you can check the RSquared and adjust the starting value for b to get a different minimum. You get an answer if you start the frequency reasonably close to the “correct” answer.
Ok i’ve understood the passages, thank a lot for the attention you are giving to me.
If you can explain how to get data in order it would be wonderful. I add the file with numbers.
Thanks again
ok i succeded on doing the fit thanks a lot!! can you only explain now why did you put the six inside nonlinearmodelfit?
I can now do the relation Thank!!
here is the file with more comments showing how to get the data.
The 6 is a starting value for the variable “b”. if you leave out starting values they all start at 0. When you do that, the fit gets stuck at a local minimum which is not very good. If you start it at 5 or 6 you get the best fit.