Unable to save 1024 x 1280 cell array of cfit objects.

조회 수: 1 (최근 30일)
Tom Sudol
Tom Sudol 2019년 12월 3일
댓글: Tom Sudol 2019년 12월 5일
After performing curve fitting to produce a 1024x1280 cell array of cfit objects (taking several hours), my attempt to save the resulting workspace object fails. Busy icons spins for 10s of minutes, computer memory usage max's out to close to 100%, and then it stops. If I try to close Matlab, it tells me processes are still running. If I close anyway, a .mat file is present where I saved it but opening it does not show me a cell array of cfit objects.
  댓글 수: 2
Sean de Wolski
Sean de Wolski 2019년 12월 3일
Why do you have this many cfit objects? What's the big picture? What type of cfit is it?
Tom Sudol
Tom Sudol 2019년 12월 4일
Sorry. Typo corrected above. It's a 1024x1280 array corresponding to an image. We are a manufacturer of imagers and cameras. We are looking to calibrate an imager's output data vs operating temperature by curve fitting the offset and gain of the individual pixel responses. The fit type is to an equation of the form a*exp(b*x)+(c*x)+d.

댓글을 달려면 로그인하십시오.

채택된 답변

Sean de Wolski
Sean de Wolski 2019년 12월 4일
편집: Sean de Wolski 2019년 12월 4일
If I were you, I'd just store a,b,c,and d, as matrices directly then when necessary construct the cfit object on the fly with the known formula to use it (or if just evaluating the y value at each x just evaluate with array algebra). The cfit brings along a lot of other information with it which is not necessary for prediction.
You can construct the cfit on the fly because you know the formula and coefficients stored.
Or you can just run this for all x at once which will be fastest. It doesn't get you other object functions like predint though.
y = a.*exp(b.*x)+(c.*x)+d

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by