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일

0 개 추천

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

Amy Topaz
Amy Topaz 2022년 3월 8일
Yeah tried that but it is getting converted into 2500*1. I need just the first column (50*1)
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개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2022년 3월 8일

댓글:

2022년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by