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)
  1 件のコメント
Jake
Jake 2016 年 5 月 3 日
Thanks!!!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by