Effacer les filtres
Effacer les filtres

How do these Python commands have to look in Matlab to calculate A and B and show me the two results?

1 vue (au cours des 30 derniers jours)
A = 10+10 B = A+10
print("A =",A) print("B =",B)
--- will show me: ---
A = 20 B = 30

Réponse acceptée

KSSV
KSSV le 26 Sep 2022
A = 10+10;
B = A+10 ;
fprintf('A = %f, B = %f\n',A,B) ;
A = 20.000000, B = 30.000000

Plus de réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by