필터 지우기
필터 지우기

convert double matrix to string

조회 수: 8 (최근 30일)
Bou
Bou 2014년 3월 16일
댓글: Bou 2014년 3월 16일
Hello,
I want to convert a double matrix to a matrix of individual cells with the number between parentheses. So I want to convert A into B.
A=
1 2 3
4 5 6
7 8 9
B=
'1' '2' '3'
'4' '5' '6'
'7' '8' '9'
Im quite new to matlab and not sure which function to use for this purpose.
Thanks in advance! Greetings Boudewijn

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 3월 16일
B=arrayfun(@num2str,A,'un',0)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by