double a number within a matrix with a certain characteristic

1 次查看(过去 30 天)
736231
736202
736169
how can I turn this matrix into a matrix with the following characteristics:
736231
736230
736202
736201
736169
736168

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Word games 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by