matlabFunction keeps running forever

1 回表示 (過去 30 日間)
M Al Mamun
M Al Mamun 2020 年 7 月 24 日
コメント済み: M Al Mamun 2020 年 7 月 25 日
Hello all,
I have a Jacobian matrix of 5420-by-5420 which contains symbolic expressions. Then I use matlabFunction to make the Jacobian a function handle. However, it keeps running forever. I don't know if it is freezed/hanged. The sample code is below.
jac=matlabFunction(Jacobian, 'Vars',{[h],[y],[x0],[Pload],[Qload]});
What is the reason that it keeps running? Could anyone please help me regarding this? Thanks in advance.
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 7 月 25 日
You are asking it to create more than 25 million elements... it is going to take a while.
M Al Mamun
M Al Mamun 2020 年 7 月 25 日
Yeah I understand now. matlabFunction roughly does 520 elements per second. So, it's gonna take around 15 hours for 5420*5420 = 29376400 elements. Thank you.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by