在matlab中保存和检索字符串数据 [英] saving and retrieving string data in matlab
本文介绍了在matlab中保存和检索字符串数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,有人可以帮助我在MATLAB中处理字符串.例如,字符串
Hi can any one help me in dealing with strings in MATLAB. For example, the string
A = 'A good looking boy'
我们如何将这些单词存储在数组中,然后再检索其中的任何单词?
how can we store these individual words in arrays and later retrieve any of the words?
推荐答案
>> C{1}
ans =
A
>> C{4}
ans =
boy
>> [C{:}]
ans =
Agoodlookingboy
这篇关于在matlab中保存和检索字符串数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文