MATLAB Answers

How to convert fraction form to decimal form?

2 views (last 30 days)
Waseem Sajjad
Waseem Sajjad on 17 Dec 2019
Answered: the cyclist on 17 Dec 2019
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.

  0 Comments

Sign in to comment.

Answers (1)

the cyclist
the cyclist on 17 Dec 2019
I think you want to use the subs command.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags


Translated by