[問題]請問讀檔的問題已回收
function mkresult(ich)
if (nargin<1), ich =1;
end
switch (ich)
case 1.
edit1 = [100 10 100 20];
h2 = uicontrol('style' , 'edit','string' ,'File name','position',edit1);
set(h2, 'callback', 'mkresult(2)');
edit2 = [210 10 100 20];
h3 = uicontrol('style' , 'edit','string' ,'File name','position',edit2);
set(h3, 'callback', 'mkresult(3)');
button1 = [10 10 60 20];
h1 = uicontrol('style' , 'pushbutton','string' ,'Load','position',button1);
set(h1, 'callback', 'mkresult(4)');
case 2.
file1 = get(h2,'string');
case 3.
file2 = get(h3,'string');
case 4,
load file1;
load file2;
end
板上的各位大大 小弟是學習matlab的新手 我的問題就是要如何 在edit上輸入檔名之後
成功讀取該檔案?
拜託了 不然真的不知道該如何繼續下去!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.249.140.105
→
04/23 14:01, , 1F
04/23 14:01, 1F
→
04/23 18:59, , 2F
04/23 18:59, 2F
→
04/23 20:51, , 3F
04/23 20:51, 3F
→
04/23 21:09, , 4F
04/23 21:09, 4F
→
04/23 21:10, , 5F
04/23 21:10, 5F
→
04/23 21:11, , 6F
04/23 21:11, 6F
→
04/23 21:12, , 7F
04/23 21:12, 7F
→
04/23 21:13, , 8F
04/23 21:13, 8F
→
04/23 21:13, , 9F
04/23 21:13, 9F