matlabFunction very slow
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am using the symbolic math toolbox to generate analytical derivatives of single valued function in approximately 190 unknowns. This works all fine (within 3 min). However, if I use matlabFunction to generate an m-file consisting of the first-order conditions, this actually takes hours... I am even more concerned by the fact that the cpu-usage is only around 0.2 percent (I have eight cores, so it would be still below 2 percent for one core).
Why is matlabFunction so slow compared to fprintf? Is it just because it tries to optimize the output? Why does matlabFunction use only a negligible fraction of the cpu?
Thanks for your answers, Best, Martin
1 件のコメント
Walter Roberson
2011 年 7 月 29 日
Related: http://www.mathworks.com/matlabcentral/answers/12491-why-is-matlabfunction-so-slow
回答 (2 件)
the cyclist
2011 年 7 月 29 日
What is the memory usage like? If you need to use virtual memory, the whole thing will slow down dramatically.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!