python code
for i in range(int(Lx)):
a,b,c,d=fsolve(equations,(1,1,1,1), new_Lx)
I want to translate python code to matlab code

1 件のコメント

Walter Roberson
Walter Roberson 2021 年 11 月 21 日
That makes it look as-if the same equations are being solved multiple times ?
How is equations specified in the code?

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

 採用された回答

Walter Roberson
Walter Roberson 2021 年 11 月 21 日

0 投票

for i = 1 : Lx
X = fsolve(@(x)equations(x,new_Lx), [1,1,1,1]);
a = X(1); b = X(2); c = X(3); d = X(4);
end

1 件のコメント

chae sungwon
chae sungwon 2021 年 11 月 22 日
Thank you for your help. I could solve it

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

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by