Matlab: What does this problem mean?

Consider the function A = [2, 2, 7, 3; 8, 5, 4, 5; 5, 6, 1, 8]

Problem: Rearrange A into a 2 x 6 matrix whose elements in each column are taken column-wise from those of A. Similarly, reshape A into a 4x3 matrix and compare it with the transpose of A. Then, reshape A into a 6x2 matrix. Finally reshape A into a 2x2x3 three dimensional array.

It's not about solving the problem. I don't know what the problem is asking me to do.

3 Answers

Relevance
  • Anonymous
    9 years ago
    Favorite Answer

    This matrix A = [2, 2, 7, 3; 8, 5, 4, 5; 5, 6, 1, 8] has 12 elements and is 3 x 4

    It can be expressed as

    A =[

    2 2 7 3

    8 5 4 5

    5 6 1 8]

    Reshaping means that you're going to change the dimension, but you're going to keep the 12 numbers. A 4 x 3 matrix has also 12 elements but in a different arrangement.

    There's the function reshape for that purpose.

    Type ' help reshape ' on your command window and see the description.

    .

  • Go into the MATRIX part on your graphing calculater (google how to get there they are all a little different) then make the size of the matrix the size it tells you. Enter the numbers into the matrix and exit out of it.

    Then (this is how we do it on mine) go 2nd-matrix-enter on A (the matrix you entered it to)- then press enter three times.

    This will give you a number to write down.

  • 9 years ago

    turn it into a matrix

Still have questions? Get your answers by asking now.