필터 지우기
필터 지우기

how to create a matrix from specific Cell array elements?

조회 수: 1 (최근 30일)
Miguel Reina
Miguel Reina 2016년 8월 26일
편집: Stephen23 2016년 8월 26일
I have a cell array (dimensions 21x8) and i need to get the values (1,1 - 1,2 - 2,1 - 2,2) and create a matrix, each element on the cell array is a vector of 10 elements. Which is the best way to solve this? Thank you in advance

채택된 답변

Stephen23
Stephen23 2016년 8월 26일
편집: Stephen23 2016년 8월 26일
Where C is your cell array:
cell2mat(C(1:2,1:2))

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by