I want to create a 2x3 matrix, the 1st row of which will get its values from GUI and the next row will contain all 1 that will be initialized in the m file itself. Is it possible to do that by concatenation or how else can I do it??
2 次查看(过去 30 天)
显示 更早的评论
for i=1:3 x{i}= uicontrol('Style', 'edit', 'String', '0', ... 'Position', [10, 400-100*(i-1), 100, 24]); y{i}= uicontrol('Style', 'edit', 'String', '0', ... 'Position', [130, 400-100*(i-1), 100, 24]); w{i}= uicontrol('Style', 'edit', 'String', '0', ... 'Position', [250, 400-100*(i-1), 100, 24]); end
I want to add another row to w which will contain all of its elements as one. I am new to matlab, so excuse me for asking a basic question.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!