How can I cut the half of Structure?

조회 수: 2 (최근 30일)
Jake
Jake 2016년 5월 3일
댓글: Jake 2016년 5월 3일
Hi,
I have a huge structure as you can see below. Since it is too large, I want to divide this into two structure matrix.
mmm =
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{41846x53 cell}
In order to do so, how can I cut the half of this? Ultimately, I want to have two structure as you can see below.
mmm_v1 =
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
mmm_v2 =
{50000x53 cell}
{50000x53 cell}
{50000x53 cell}
{41846x53 cell}
Thanks for your help in advance!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 3일
n=fix(numel(mmm)/2)
mmm1=mmm(1:n)
mmm2=mmm(n+1:end)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by