double a number within a matrix with a certain characteristic

조회 수: 1 (최근 30일)
AA
AA 2015년 10월 1일
답변: Walter Roberson 2015년 10월 1일
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