Converting each matrix entry to specific string

1 次查看(过去 30 天)
hi,
I have matrix
A=[1 2 3;4 5 6; 7 8 9]
I wanted to convert each matrix entry to specific string for example
A=[X(1) X(2) X(3);X(4) X(5) X(6); X(7) X(8) X(9)]
Any Suggestion Please!!!

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-11-17
arrayfun(@(ii) X(ii),A,'un',0)
  5 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by