Clear Filters
Clear Filters

How can I cut the half of Structure?

3 views (last 30 days)
Jake
Jake on 3 May 2016
Commented: Jake on 3 May 2016
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!

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 3 May 2016
n=fix(numel(mmm)/2)
mmm1=mmm(1:n)
mmm2=mmm(n+1:end)

More Answers (0)

Tags

Products

Community Treasure Hunt

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

Start Hunting!