How can I change the 1_D array to the 2_D in specific case?
Afficher commentaires plus anciens
Hello everyone pleas How can I rewrite the 1_D array(X) into 2_D array(New_X)?
For example:
X=[0 1 0 2 3 0 4 5 6 0 7 8 9 10 0];
into
New_X(i,j)=[0 1 2 4 7
1 0 3 5 8
2 3 0 6 9
4 5 6 0 10
7 8 9 10 0];
1 commentaire
Walter Roberson
le 2 Juin 2021
What is the logic for skipping values?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Sparse Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!