EDA365电子论坛网
标题:
有关数组索引的问题请教大神,非常感谢!
[打印本页]
作者:
sharkN
时间:
2021-1-22 15:00
标题:
有关数组索引的问题请教大神,非常感谢!
位置 1 的索引无效。数组索引必须为正整数或逻辑值。
5 X F: F/ H# F2 W E
methods (Access = private)
function status = buttonstatus(app,m,n)
status=zeros(m,n);
for i = 0:m
for j = 0:n
val = app.Button_1.Value;
if val == 0
status(i,j) = 1;
else
status(i,j) = 0;
end
end
end
end
end
3 f1 I2 _: ^% G" {; ?
请教大神,非常感谢!
作者:
artic
时间:
2021-1-22 15:21
和C不一样,这里的索引起始值是1啊!
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2