看板 MATLAB 關於我們 聯絡資訊
clc;close all;clear; tic QQ=1; a={'Source_Image\ApacheTrail\*.mat'}; mits = dir(a{QQ}); jj=input('jj='); name = mits(jj).name; disp(name); z1=load([mits(jj).name]); <--這行跑不過 單純反白mits(jj).name 有東西 可是在反白就都錯誤出現 ??? Error using ==> load Unable to read file 00100.mat: No such file or directory. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.134.30.184
shuntau:請問你的檔名是甚麼?路徑在哪邊? 07/03 15:16
shuntau:如果是放在資料夾內的話請先移動到該資料夾再讀取 07/03 15:16
wer12:mat檔 是放在ApacheTrail 這個資料夾裡的 07/03 15:21
shuntau:恩,那你MATLAB的M檔存在什麼地方?或是你在哪個位置執行 07/03 15:30