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!