MATLAB: Hello everyone, I am facing one problem,

equationStatistics and Machine Learning Toolbox

I have 3 different non linear data. Let's say x,y and z.for different values of Z I have different data set of x and y. If I fix the value of Z I am able to find the relation between x and y, but if I change the value of Z that relation won't work, I need to find relation between x,y and z independently. Can anyone please help! Thank you in advance.
for z=500 I have x = 1145 to 1240 with the gap of 1,y = (17.75,16.2,15.1,14.25,13.45…. respectively
for z=400, x values remains the same 1145-1240 y values differs.
I need to find a relation between x,y and z independently. in which y = fun(x,z). thank you.

Best Answer

Try the attached code where I fit an exponential growth curve to each curve, which belongs to each x value. It uses fitnlm() of the Statistics and Machine Learning Toolbox.
0001 Screenshot.png