Exam 15: Matlab

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Find the corresponding MATLAB output: \gg=[2,3,4,5;1,-3,-7,4;2,3,2,1] \gg() ans =

(Short Answer)
4.8/5
(33)

The following matrices have already been defined in MATLAB: A=[241013163718849253121517]B=[135106131153120221258]A = \left[ \begin{array} { c c c c } 2 & 4 & 10 & 13 \\16 & 3 & 7 & 18 \\8 & 4 & 9 & 25 \\3 & 12 & 15 & 17\end{array} \right] \quad B = \left[ \begin{array} { c c c c } - 1 & 3 & - 5 & 10 \\6 & 13 & 11 & - 5 \\- 3 & 12 & 0 & 2 \\2 & 12 & - 5 & 8\end{array} \right] What would be the outputs of the following MATLAB inputs: - B(:,3:4)\gg \mathrm { B } ( : , 3 : 4 )

(Essay)
4.7/5
(32)

W What does the following MATLAB function do?      log2(x)~~~~~\log 2 ( \mathrm { x } ) a. returns the value of base-2 logarithm of xx . b. returns the value of base-10 logarithm of 2 and assigns it to xx . c. returns the value of common log\log of 2x2 x . d. returns the value of natural logarithm of 2 and assigns it to xx .

(Short Answer)
4.8/5
(31)

If you define x=2/3\mathbf { x } = 2 / 3 , and then type format short\mathbf { format~ short} , how will the value of x\mathbf { x } be displayed? a. x=0.66666666667x = 0.66666666667 b. x=0.6667x = 0.6667 c. x=0.67x = 0.67 d. x=2/3x = 2 / 3

(Short Answer)
4.9/5
(35)

If you define x=2/3\mathbf {x = 2 / 3} , and then type format bank\mathbf {format ~bank} , how will the value of x\mathbf { x } be displayed? a. x=0.66666666667\mathrm { x } = 0.66666666667 b. x=0.6667x = 0.6667 c. x=0.67x = 0.67 d. x=2/3x = 2 / 3

(Short Answer)
4.9/5
(37)

Shown below are MATLAB inputs.Complete each output: \ggA=[1:4]; \ggB=3.*A \ggB=

(Essay)
4.8/5
(42)

The following matrices have already been defined in MATLAB: A=[241013163718849253121517]B=[135106131153120221258]A = \left[ \begin{array} { c c c c } 2 & 4 & 10 & 13 \\16 & 3 & 7 & 18 \\8 & 4 & 9 & 25 \\3 & 12 & 15 & 17\end{array} \right] \quad B = \left[ \begin{array} { c c c c } - 1 & 3 & - 5 & 10 \\6 & 13 & 11 & - 5 \\- 3 & 12 & 0 & 2 \\2 & 12 & - 5 & 8\end{array} \right] What would be the outputs of the following MATLAB inputs: - A(:,3)\gg \mathrm { A } ( : , 3 )

(Essay)
4.9/5
(39)

The following matrices have already been defined in MATLAB: A=[241013163718849253121517]B=[135106131153120221258]A = \left[ \begin{array} { c c c c } 2 & 4 & 10 & 13 \\16 & 3 & 7 & 18 \\8 & 4 & 9 & 25 \\3 & 12 & 15 & 17\end{array} \right] \quad B = \left[ \begin{array} { c c c c } - 1 & 3 & - 5 & 10 \\6 & 13 & 11 & - 5 \\- 3 & 12 & 0 & 2 \\2 & 12 & - 5 & 8\end{array} \right] What would be the outputs of the following MATLAB inputs: - B(2:3,2:4)\gg \mathrm { B } ( 2 : 3,2 : 4 )

(Essay)
4.9/5
(39)

Shown below are MATLAB inputs.Complete each output: \gg=[10:-2:0]; \gg=0./ \gg=

(Essay)
4.7/5
(37)

W Which of the following MATLAB commands would calculate the value of exe ^ { x } ? a. ex\mathrm { e } ^ { \wedge } \mathrm { x } b. exp(x)\exp ( \mathrm { x } ) c. expx\exp ^ { \wedge } \mathrm { x } d. exponent (x)( \mathrm { x } )

(Short Answer)
4.8/5
(42)
Showing 21 - 30 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)