Converting array to column matrix

조회 수: 5 (최근 30일)
Amy Topaz
Amy Topaz 2022년 3월 8일
댓글: Amy Topaz 2022년 3월 8일
How can we convert the below array (50*50) into a column array which only has the first column (50*1)

채택된 답변

Arif Hoq
Arif Hoq 2022년 3월 8일
편집: Arif Hoq 2022년 3월 8일
use colon(:). each variable will be forced to be a column vector
col_vector=Eflevel(:)
if you want extract first 50 data(50*1), then
output=col_vector(1:50,1)
  댓글 수: 3
Arif Hoq
Arif Hoq 2022년 3월 8일
편집: Arif Hoq 2022년 3월 8일
do you want first 50 rows ? please attach your data. or try
output2=Eflevel(1:50,1)
Amy Topaz
Amy Topaz 2022년 3월 8일
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by