看板 MATLAB 關於我們 聯絡資訊
我有一段 code : for i=1:5 eval('uicontrol(''Parent'',h_uipanelB,''Style'',''checkbox'',''String'', ''Draw Plot'',''Position'', [num2str(10),num2str(10+i*3),num2str(120),num2str(15)]);'); end 顯示結果為 : ??? Error using ==> uicontrol Value must be numeric 請問該怎麼寫才是正確的呢? PS: eval 原程式為一行無斷句 , 那若有斷句的話, 後面的 ... 要寫成 '...' 嗎? 謝謝大家~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.57.152.2
okgogogo:位置要放數字...你放字串他看不懂啊 07/09 01:56
shietsd:謝謝 我成功了 甘溫 07/09 16:30