[問題] 不知哪裡出問題?已回收

看板MATLAB作者 (陽光男)時間14年前 (2011/04/13 09:51), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
這是實驗室前輩撰寫的,但是他經畢業了,無從問起,來此請教高手們 function [R1,R2,R3,R4,B,P]=detection(test_data) r=size(test_data,1); P=cell(r,1); R1=cell(r,1); R2=cell(r,1); R3=cell(r,1); R4=cell(r,1); B=cell(r,1); for i=1:r str=test_data(i).name; im=imread(str); [rr cc dd]=size(im);........................ 其中test_data='normalWBUS.tif'; 執行都會跳出bug Improper index matrix reference. Error in ==> detection at 12 str=test_data(i).name; 請問是啥bug呢? 麻煩大家了,感謝^^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.218.121

04/13 12:06, , 1F
test_data不會長這樣吧 text怎麼會有.name這種屬性?
04/13 12:06, 1F
文章代碼(AID): #1DfG6Mig (MATLAB)