Reading file data into cell array of character strings -


i'm new matlab. have files conatins list of string like:

abccd hgaq vbser 

i need read cell array of character strings.

i tried code:

fid2 = fopen('c:\matlab\data\myfile.txt'); tline = fgetl(fid2);  while ischar(tline)     disp(tline)     tline = fgetl(fid2); end  fclose(fid2); 

however, didn't know how convert output cell array of character strings

importdata you:

>> x = importdata('file.txt'); x =      'abccd'     'hgaq'     'vbser'  >> whos x   name      size            bytes  class    attributes   x         3x1               364  cell     

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -