Column Major order matrix

12 vues (au cours des 30 derniers jours)
Basem Sharafeldin
Basem Sharafeldin le 16 Oct 2015
im trying to create an 11x11 matrix using the number 1-121 in row AND column major order. I'm trying to use the zeros and ones command also transpose and similar like commands. Any suggestions/solutions. BTW I tried using another variable to associate it with the command.

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Oct 2015
If you can solve one of the two then you can transpose() it to get the other.
Hint: reshape.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by