How to convert arrays to strings in bulk at the same time similar with the function itoa in C language
조회 수: 2 (최근 30일)
이전 댓글 표시
Recently, I try to converts numbers into strings in bulk, but I find the function num2str cost a long time if I convert them one by one with the command for.
Take an example in Matlab
A=ones(1e9,1);
for i=1:1e9
x=num2str(A(i));
end
The time it costs is related to the size of A, I want to convert arrays to strings in bulk at the same time so that the cost time has nothing to do with scale.
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!