saving and retrieving string data in matlab

后端 未结 3 583
旧时难觅i
旧时难觅i 2021-01-25 00:24

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

3条回答
  •  渐次进展
    2021-01-25 01:18

    You can use the simple function textscan for that:

    C = textscan(A,'%s');

    C will be a cell array. This function is in Matlab at least since R14.

提交回复
热议问题