How to convert fraction form to decimal form?

조회 수: 1 (최근 30일)
Waseem Sajjad
Waseem Sajjad 2019년 12월 17일
답변: the cyclist 2019년 12월 17일
If I simply write
>>1.234
answer is
>>
ans =
1.234
But if I put
>>syms a
>>1.234*a
it gives me answer
>>
ans =
(2469*a)/2000
But I want this answer in decimal form.

답변 (1개)

the cyclist
the cyclist 2019년 12월 17일
I think you want to use the subs command.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by