シンボリック関数を使った行列計算

1 view (last 30 days)
Takanori Aihara
Takanori Aihara on 28 May 2024
Commented: Takanori Aihara on 29 May 2024
二次関数のシンボリック関数f(x)を作製してK=3000×6000の行列の行列計算をしているのですが処理が進んでいるのか進んでいないのか分からないくらい処理が続いています。
テスト段階でK=300×600の行列では計算できたのですが、、、さすがに行列内の数値が多すぎるのでしょうか。
テスト段階でエラーメッセージは出ておらず、K=3000×6000の行列の方でもエラーは出ていません。
MATLABの仕様上なのかも含めてご教授お願いします。
  2 Comments
Dyuman Joshi
Dyuman Joshi on 28 May 2024
Edited: Dyuman Joshi on 28 May 2024
Doing 3000×6000 calculations symbolically will be extremely slow, as is evident in your case.
You can define a Function Handle instead and perform calculations numerically.
Takanori Aihara
Takanori Aihara on 29 May 2024
I understand.
Thank you very much.
Best regards,

Sign in to comment.

Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!