adplus-dvertising
frame-decoration

Question

What is the output of the following code?
syms x;
timeit(@()sin(x))

a.

The time required to compute the value of a sin(x)

b.

Error due to sin(x)

c.

Syntactical Error

d.

Time required to initialize sin(x) as a vector of symbolic elements

Posted under MATLAB

Answer: (d).Time required to initialize sin(x) as a vector of symbolic elements

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?