merge values of a vector
2 ビュー (過去 30 日間)
古いコメントを表示
Hey matlab community,
I want to merge the values of a vector to a single scalar. So for example i have the vector z = (1,2,3,4). The final value should be 1234.
Thanks in advance
0 件のコメント
採用された回答
Akira Agata
2020 年 1 月 19 日
Like this?
x = 1:4; % sample input array
s = num2str(x,'%d');
y = str2double(s);
>> y
y =
1234
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!