double a number within a matrix with a certain characteristic

1 visualizzazione (ultimi 30 giorni)
736231
736202
736169
how can I turn this matrix into a matrix with the following characteristics:
736231
736230
736202
736201
736169
736168

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Word games in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by