Attempt the following questions.

Question-1[30 Pts]: Fill in the following blanks.

  1. The Matlab expression for is __________
  2. ______ is used to suppress Matlab’s
  3. The Matlab code: A = [1 2 3; 4 5 6]; B = A(A>2) will result in ______
  4. The command clear all means _______
  5. The commands: x=’abcdefgh’; y=’12345678’; z=[x;y]’ will result in _______
  6. The Matlab command that divides a single figure into a 3-by-3 array of panels, and makes the top right corner panel as the current plot panel is ________

 

Question-2[20 Pts]:

  1. Given vectors x = [-1, 2, 3, -2], y = [0.2, 3.1, 0, -3] and z = [3, 0, 1, 0.1], provide the Matlab answers to the following operations:

i)       x < y > z

ii)      x + ~y > z

iii)      x == y ~=z

     2. Write a Matlab script to calculate the following methodical expression:

  

Best wishes,,,

     Dr.-Ing. Samy Sadek