How to extract variables from multiple cell arrays and import the variables into two columns

조회 수: 2 (최근 30일)
How do I extract variables from multiple cell arrays (with two seperate variables each) which are within a single array and transport them into two columns.
Within each cell array there are 2 variables (a and b) - I want to be able to take the variables from the cell arrays and create an array with two columns for the variables a and b.
I will then use these rows of variables to apply a function to them.
These are the cells arrays that I want to split into two columns

채택된 답변

David Hill
David Hill 2021년 3월 15일
This should work for you if I understand your correctly.
m=cell2mat(yourCellarray);

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by