필터 지우기
필터 지우기

how to reshape cell to matrix?

조회 수: 5 (최근 30일)
Sharif Khalil
Sharif Khalil 2019년 3월 16일
편집: Sharif Khalil 2019년 3월 17일
I have a cell that is 180X8, each cell is 180X6 matrix, when I convert it to a matrix using (cell2mat) it outputs 32400X48, I need it to be 259200X6.
I have used reshape (reshape(xx,[],6);) but it chooses the 1st, 3rd, 5th, 7th, 9th, and 11th columns, I want to choose from 1 to 6, and underneath them the second 6 columns and so on.

채택된 답변

madhan ravi
madhan ravi 2019년 3월 17일
cat(1,yourcell{:})
  댓글 수: 1
Sharif Khalil
Sharif Khalil 2019년 3월 17일
Yes, thank you, I was actually looking for answers and I did the same :)
cat(1,yourcell{1:end});
But thanks again

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by