From the following desktop view of workspace, choose the correct code.
A. a=10;b=’pi’;syms c; d=[1,2;0;4];
B. a=10;b=’pi’;syms c; d=[1,2;0,4];
C. a=10;b=pi;syms (c); d=[1,2;0,4];
D. a=10;b=’pi’;syms c; d=[1,2;0,4];
Answer: a
Explanation: ‘b’ is a character variable, within inverted commas. ‘a’ is a double variable. ‘c’ is a symbolic object while ‘d’ is a 2*2 matrix. The declaration of the variables is in accordance to the following code:
a=10;b=’pi’;syms c; d=[1,2;0;4];