how to use all the data for a nonlinear regression?
Show older comments
Hi everyone,
I'm modeling some of my data. As you can see from the attached file, there are 4 columns: time, biomass, hydrogen, acetate. In reality I have more data than hydrogen, but I don't know how to do the integration, since biomass and acetate have less data.
Attached you will find the model and complete data. The model works if you remove the additional data from the third column.
Thanks everyone for the advice!
Accepted Answer
More Answers (1)
Mr. Pavl M.
on 12 Oct 2023
Edited: Mr. Pavl M.
on 12 Oct 2023
Hi,
I carefully attain further requirements/demands:
It's okay, normal right, you do there curve-fitting by l.-m. algorithm, 3 values in c matrix as a functions of time,I checked the data file timestamps to values consistency ( number of quantities in each column must be equal number of timestamps (sampling points in time - length of the first column)), then you solve custom differential equation.
My answer: remove NaN and Inf values from input by:
c(isnan(c))=0; % (or value to impute) and input can be your c matrix or y(:,i) vectors,
%c(isinf(c)) = max_num; % if there are Inf in inputs
and run, what d'you get?
Categories
Find more on Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!