Question: B = { [1,2], John Smith; 2+3i, 5} ; What does x=B{2,2} do when entered in the MATLAB command window ? x = cell x

  1. B = { [1,2], John Smith; 2+3i, 5};

What does x=B{2,2} do when entered in the MATLAB command window?

  1. x = cell
  2. x = 5
  3. x = [5]
  4. x = double
  1. Assuming that B remains the same as the problem 3, what does d=B{:,2} do, when typed in the MATLAB command window?
  1. d = John Smith
  2. d = John Smith

5

  1. d = 5
  2. d = 1 2

What does e=num2cell(a) do when typed in the MATLAB command window?

  1. e =

[7] [3] [7] [4] [6] [6]

[4] [4] [2] [1] [6] [5]

[7] [9] [8] [2] [4] [1]

  1. e =

[3 x 1 double] [3 x 1 double] [3 x 1 double] [3 x 1 double] [3 x 1 double] [3 x 1 double]

  1. e =

[1 x 6 double]

[1 x 6 double]

[1 x 6 double]

  1. e =

[3 x 6 double]

  1. Struct elements are addressed by names called
  1. Sub-elements
  2. Sub-structures
  3. Extensions
  4. Fields

  1. Which statement is not true?
  1. Structure arrays are like cell arrays.
  2. Structure arrays allow to group collections of dissimilar data into a single variable.
  3. Structure elements are accessed by content addressing, (meaning you can access them in an orderly way).
  4. In structure, the dot . notation is used.

  1. In logical operations, the highest operator precedence belongs to
  1. Element-by-element AND
  2. Parentheses ( )
  3. Scalar AND with short circuiting
  4. XOR
  1. Which MATLAB Desktop environment is this? Your first interaction with MATLAB will be through this. This is the place where you can type MATLAB commands and view the output of these commands.
    1. Workspace
    2. Command Window
    3. Command History
    4. Command Directory
  1. The command you can type in the prompt of MATLAB to select and commentate the portions of the editor is _________.
    1. Ctrl + V
    2. Grid off
    3. clc
    4. Ctrl + R
  1. What will the command rand(5,5,5,5)*5 do in MATLAB?
    1. It generates a 5x5x5 matrix that contains random numbers ranged, 0 and 5.
    2. It generates a 4-dimensional (each dimension has 5 element) matrix that contains random numbers ranged, 0 and 5.
    3. It generates a 4x5 matrix that contains random numbers ranged, 0 and 5.
    4. It generates a random array that contains random numbers ranged, 0 and 20.
  1. What will the command reshape(r,625,1) do in MATLAB?
    1. It reshapes the array r into 625x5 matrix.
    2. It reshapes the array r into 625x1 column vector.
    3. It reshapes the array r into 1x625 row vector.
    4. It reshapes the array r into 5x625 matrix.
  1. What command should be used when you want to move the rows of a matrix one row at a time?
    1. fliplr()
    2. flipud()
    3. rot90()
    4. circshift()
  1. Which statement is not true?
    1. Variables are not recalculated automatically unless they are told.
    2. A special value, i or j, can be re-assigned to a different value but when its value has been cleared, it would go back to the default value.
    3. For abruptly stopping the program Ctrl+C should be used.
    4. Special handling is required for complex numbers in MATLAB.
  1. Which statement is true?
    1. When making an array, ; differentiates columns and space or , differentiates rows.
    2. Typing echo at the MATLAB prompt works like a toggling, changes echo states.
    3. tic/tac( ) function delays the execution with the desired time.
    4. Putting linspace( ) inside the bracket does not affect the speed of MATLAB operations.

  1. What command is equivalent to below?

a = [1 2 3];

b = [4 5 6];

c = [a; b];

  1. c = cat(1, a, b);
  2. c = conv(a, b);
  3. c = concat(1, a, b);
  4. c = joint(a, b);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!