Unable to save 1024 x 1280 cell array of cfit objects.
조회 수: 1 (최근 30일)
이전 댓글 표시
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
2019년 12월 3일
Why do you have this many cfit objects? What's the big picture? What type of cfit is it?
채택된 답변
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 Center 및 File Exchange에서 Fit Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!