How to speed up my code (computing jacobian)
古いコメントを表示
My input are a lot of linear expressions such as x1+x2, x2+3*x3 etc. How to speed up my code as follows
allvars = symvar(input); % There are about 1000 LINEAR expressions in 'input'
J = jacobian(input, allvars);
1 件のコメント
Torsten
2024 年 6 月 15 日
You shouldn't work symbolically with about 1000 expressions. A numerical approach is the way to go.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!