matlab分类代码xls_text为0

matlab代码,读取到肺结节的位置信息和良恶性程度后,根据该信息提取肺结节,并按照良恶性程度分类存储。
为什么xls_text会显示0

img

clear;
clc;
%肺实质的图片
image_path = 'D:\LUNAR\alung\LIDC-IDRI-0001\';
%肺结节的位置信息和良恶性程度
xls_path = 'D:\LUNAR\AAxsl\LIDC-IDRI-0001.xls';
[txt,xls_text] = xlsread(xls_path);
xls_num = size(xls_text);
xls_num(1);
for m = 1:xls_num(1)
     img_name = xls_text(m,1);
     str = img_name{1};
     img_name = [str,'.jpg'];
     jpg_child_path = [image_path,img_name]
      if exist(jpg_child_path,'file')
          col4x = txt(m,4) - txt(m,2);
          col4y = txt(m,5) - txt(m,3);
          dir = txt(m,6);
          times = txt(m,7);
          size_center = [ ];
          if col4x < 32 && col4y < 32
              ma = 0.5 * (32 - max(col4x,col4y));      
              col4xy = [txt(m,2)-ma,txt(m,3)-ma,32,32];  
              size_center =[ma,ma,max(col4x,col4y)];
              zl_jianqie(jpg_child_path,dir,times,size_center,col4xy);
              continue;
          end
          size_center =[0,0,max(col4x,col4y)];
          col4xy = [txt(m,2),txt(m,3),max(col4x,col4y),max(col4x,col4y)];
          zl_jianqie(jpg_child_path,dir,times,size_center,col4xy);
      end
    
%     break;
end

xls表格如下

img

假设数据:

A    B    C
1    2.3    text1
4    5.6    text2
7    8.9    text3

data = xlsread('example.xlsx') 结果是

data =

     1.0000     2.3000
     4.0000     5.6000
     7.0000     8.9000

[num, txt] = xlsread('example.xlsx')结果是

num =

     1.0000     2.3000
     4.0000     5.6000
     7.0000     8.9000

txt =

  3×1 cell array

    {'text1'}
    {'text2'}
    {'text3'}