How can I cut the half of Structure?

3 次查看(过去 30 天)
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 中查找有关 Logical 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by