How Can I convert a 1 by 1 array into multidimensional array?
이전 댓글 표시
For example i have
a=[1]
I want to convert it into
a=[1111 1111 1111
1111 1111 1111
1111 1111 1111]
Can anyone please help me here.
답변 (2개)
Star Strider
2017년 7월 5일
One approach:
a = [1];
a = a*ones(1, 36);
a = reshape(a, [], 4);
Walter Roberson
2017년 7월 5일
repmat(a, 3, 4, 3)
perhaps
카테고리
도움말 센터 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!