发布网友 发布时间:2022-04-22 05:57
共1个回答
热心网友 时间:2023-06-23 06:58
>> A
A =
0 0 0
0 1 0
0 1 0
0 1 0
1 1 0
1 1 1
1 0 0
1 0 0
1 0 1
0 0 1
1 1 0
1 0 0
>> [m,n]=size(A);
>> A=[ones(m,1),A]
A =
1 0 0 0
1 0 1 0
1 0 1 0
1 0 1 0
1 1 1 0
1 1 1 1
1 1 0 0
1 1 0 0
1 1 0 1
1 0 0 1
1 1 1 0
1 1 0 0
>>