Creating a fucning in spesific format

조회 수: 4 (최근 30일)
Berkay
Berkay 2022년 8월 30일
답변: Sulaymon Eshkabilov 2022년 8월 30일
I want to create a fucntion that display the input variable in long format.
How can I do it ?

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 8월 30일
You may consider using fprintf() by specifying the format specs, e.g.:
F = pi;
fprintf('F = %3.15f \n', F)
F = 3.141592653589793

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by