about python code to matlab code

5 次查看(过去 30 天)
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
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by