about python code to matlab code
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
chae sungwon
el 21 de Nov. de 2021
Comentada: chae sungwon
el 22 de Nov. de 2021
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 comentario
Walter Roberson
el 21 de Nov. de 2021
That makes it look as-if the same equations are being solved multiple times ?
How is equations specified in the code?
Respuesta aceptada
Walter Roberson
el 21 de Nov. de 2021
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Call Python from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!