filmov
tv
Convert matrix to single column
![preview_player](https://i.ytimg.com/vi/rJgrH_Sv_gc/maxresdefault.jpg)
Показать описание
Given any matrix, convert it to single column
CODE:
clc
x=input('Enter the matrix');
Y=[];
[r c]=size(x);
for j=1:c
for i=1:r
Y=[Y x(i,j)];
end
end
Y=Y';
CODE:
clc
x=input('Enter the matrix');
Y=[];
[r c]=size(x);
for j=1:c
for i=1:r
Y=[Y x(i,j)];
end
end
Y=Y';