adplus-dvertising
frame-decoration

Question

What is the output of the following code?
syms p q;
x=p+2*q;
diff[x];

a.

1

b.

0

c.

Syntactical Error

d.

Logical Error

Posted under MATLAB

Answer: (c).Syntactical Error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?