【发布时间】:2014-02-26 19:29:48
【问题描述】:
如何在 MATLAB 中将一列字符串附加到一列数字中?
例如,我有字符串列wrds 和数字列occurs
wrds={'the' 'of' 'to' 'and'}'; occurs=[103 89 55 20]';
我想将它们并排放置,以便它们显示如下:
'the' 103
'of' 89
'to' 55
'and' 20
你会认为这可以解决问题:
out={wrds occurs}
但是当我输入这个时我得到的输出是:
out =
{4x1 cell} [4x1 double]
这什么也没告诉我。我怎样才能看到字符串和数字的实际显示?
【问题讨论】:
标签: string matlab concatenation cell-array