フィルターのクリア

Hello everyone, help for consolidation of numbers

1 回表示 (過去 30 日間)
SAVAS PAPAGIANNIDIS
SAVAS PAPAGIANNIDIS 2019 年 3 月 11 日
Hello everyone,
I would like your help in the following :
How can i convert A = [1,2,3,4,5,6......n] to B = [123,456,......n],........ ???
thanks in advance..!!

採用された回答

Bob Thompson
Bob Thompson 2019 年 3 月 12 日
One convoluted way of doing this would be to convert to strings and back.
for i = 1:length(A)/3
B(i) = str2num([num2str(A(3*i-2)),num2str(A(3*i-1)),num2str(A(3*i))]);
end
  1 件のコメント
SAVAS PAPAGIANNIDIS
SAVAS PAPAGIANNIDIS 2019 年 3 月 12 日
It's exactly what I wanted, thank you for your gracius response. . ! ! !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by