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??

3 次查看(过去 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 个)

类别

Help CenterFile Exchange 中查找有关 Numeric Types 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by