double a number within a matrix with a certain characteristic

1 vue (au cours des 30 derniers jours)
AA
AA le 1 Oct 2015
736231
736202
736169
how can I turn this matrix into a matrix with the following characteristics:
736231
736230
736202
736201
736169
736168

Réponse acceptée

Walter Roberson
Walter Roberson le 1 Oct 2015
result = reshape([YourMatrix.'; YourMatrix.'-1], [], 1);

Plus de réponses (0)

Catégories

En savoir plus sur Word games 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