필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
A = 10+10 B = A+10
print("A =",A) print("B =",B)
--- will show me: ---
A = 20 B = 30

채택된 답변

KSSV
KSSV 2022년 9월 26일
A = 10+10;
B = A+10 ;
fprintf('A = %f, B = %f\n',A,B) ;
A = 20.000000, B = 30.000000

추가 답변 (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