matrix
Title
Question
while typing 1/2 shows as 0.5 not 1upon 2
Scilab Matrix-Operations 00-01 min 0-10 sec
Answers:
Scilab represents the answer in decimal format only.
But you can still have a look at the following options:
1. You can use 'rat' function. For e.g.,
Assume, n- numerator, d- denominator
[n,d]=rat(1.5/10)
n =
3.
d =
20.
n =
3.
d =
20.
OR
2. You can use 'rlist' function, this represents the given input values in fraction format:
rlist(3.5,10)
ans =
3.5
---
10
ans =
3.5
---
10
Login to add comment