I want to print name and value of a variable like "S" as below during the run:
S = 0.15
Can you help me with this please

 채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 24일
편집: Ameer Hamza 2020년 9월 24일

1 개 추천

S = 0.15;
fprintf('S = %.2f\n', S)

추가 답변 (1개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

2020년 9월 24일

답변:

2020년 9월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by