Attempt the following questions.
Question-1[30 Pts]: Fill in the following blanks.
- The Matlab expression for is __________
- ______ is used to suppress Matlab’s
- The Matlab code: A = [1 2 3; 4 5 6]; B = A(A>2) will result in ______
- The command clear all means _______
- The commands: x=’abcdefgh’; y=’12345678’; z=[x;y]’ will result in _______
- 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]:
- 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