Matrix with numerical sequence
Afficher commentaires plus anciens
Hi!
i am creating a matrix (n,m), which are the input values. the matrix needs to be like this:
[1 4 2 .... 4 2 4 1;
4 16 8 ....16 8 16 4;
2 8 4 ... 8 4 8 2;
.... .....;
4 16 8 ...16 8 16 4;
2 8 4 .... 8 4 8 2;
4 16 8 ....16 8 16 4;
1 4 2 .....4 2 4 1]
how do i code this in matlab?
2 commentaires
Birdman
le 12 Jan 2018
The pattern is not clear to me. Can you be more specific?
marco lopes
le 12 Jan 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Algebra dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!