views:

108

answers:

0

For the matrix alpha described below, write a script to perform the following computations. Use a complete sentence to describe every number you display. Only use the fprintf() function for displaying answers.

  • Compute and display the maximum and minimum values in alpha.
  • Compute and display largest odd number in each row.
  • Compute and display how many elements in alpha are divisible by 3.

Matrix:

  alpha=[5  7  3  2 6  9;
         1  45 8  5 3  2;
         6  8  5  2 4  7;
         13 64 32 6 87 2;
         34 65 1  2 4  5;
         5  7  12 3 65 4]

Do not hard code any of your work. Your script should still perform the same operations regardless of the element values of alpha.

related questions