Effacer les filtres
Effacer les filtres

How can I cut the half of Structure?

1 vue (au cours des 30 derniers jours)
Jake
Jake le 3 Mai 2016
Commenté : Jake le 3 Mai 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!

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 3 Mai 2016
n=fix(numel(mmm)/2)
mmm1=mmm(1:n)
mmm2=mmm(n+1:end)
  1 commentaire
Jake
Jake le 3 Mai 2016
Thanks!!!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by