Data fitting with custom model
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello!
I have a measured data set of xdata and ydata (length N) where I want to determine parameters of a model. The problem is that the model includes the laminate theory of composites where for the given x (for example force) a result for y (for example strain) is calculated. Matlab only uses the full vector of the data set. If I want to get the best parameters (for example e modulus) this results in a parallel computing of N-times the laminate theory that the full vector of measured data can be used. in every help the function between x and y is mathematical like y=ax+b which is quite easy to vectorize.
Do I have to improve the code that this is possible or is there another solution for this ? An idea is to use fmincon and create a function R=(fun(parameter, xdata(1,1))-ydata(1,1))^2 and to minimize R where only one data point is used. But this result in N times the summand "(fun(parameter, xdata(1,1))-ydata(1,1))^2" and depends on the length of the given data set which is quite uncomfortable.
Are there any ideas to solve this ?
댓글 수: 0
답변 (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!