[問題] eval 內使用 uicontrol
我有一段 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
推
07/09 01:56, , 1F
07/09 01:56, 1F
→
07/09 16:30, , 2F
07/09 16:30, 2F