large special matrix

6 vues (au cours des 30 derniers jours)
William
William le 28 Juin 2011
Hello I need a way to create a 4,030,464 element matrix that is 4096 x 984 elements and numbered 1 to 4030464. I cannot think of an easy way to create this besides a brute force method. Any ideas?
Thank you

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 28 Juin 2011
Use this example:
reshape(1:10,5,2)

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping 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