필터 지우기
필터 지우기

print all elements of matrix in single row

조회 수: 2 (최근 30일)
raj singh
raj singh 2014년 12월 13일
답변: Star Strider 2014년 12월 13일
I have a matrix A=[1 2;3 4]; i wan to single row with all elements of A like like this
B=[1 2 3 4]
Please help me

답변 (1개)

Star Strider
Star Strider 2014년 12월 13일
This works:
A=[1 2;3 4];
B = A(:).';

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by