Professional Documents
Culture Documents
A 62.8319 B 6.3662 Ans 20 Ans 20
A 62.8319 B 6.3662 Ans 20 Ans 20
4*5
a=ans*pi
b=ans/pi
ans
>> 4*5
ans =
20
>> a=ans*pi
a =
62.8319
>> b=ans/pi
b =
6.3662
>> ans
ans =
20
a 62.8319
Thus, the values of a, b and ans are b 6.3662 .
ans 20
The final value saved in ans is ans 20 .
The value of ans is retained for further calculations as the expression without an equal
sign is used only once in the given MATLAB code. If the expression without equal sign
is used more than once then the value of ans is overwritten.