Question: 21. Consider the following MATLAB commands: x = [1, 2, 3]; output = sum(x.^2); What is the output of result? a) 14 b) 9

21. Consider the following MATLAB commands: x = [1, 2, 3]; output = sum(x.^2); What is the output of result?

21. Consider the following MATLAB commands: x = [1, 2, 3]; output = sum(x.^2); What is the output of result? a) 14 b) 9 c) 6 d) 12 22. syms y(t) Dy = diff(y); Eq = Dy + y == t; output = dsolve(Eq); What is the output of output? a) C1*exp(-t) +t-1 b) C1*t^2 +t+1 c) C1*exp(t) + t d) C1 - t + exp(t)

Step by Step Solution

3.39 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided below The image shows two MATLABrelated quest... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!