How to split/reduce dimension of a variable

3 vues (au cours des 30 derniers jours)
Olca Orakci
Olca Orakci le 31 Juil 2019
Commenté : Olca Orakci le 31 Juil 2019
Hello,
I have a variable of size 40 x 40 x 2 x 102400 and i want to seperate this variable to two 40 x 40 x 102400 variables. I plan to use the data on python, but have problems with the size and dimensions of the data. I don't know if this is an easy or a complex problem but i am new to matlab and couldn't find how to do this.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 31 Juil 2019
Modifié(e) : KALYAN ACHARJYA le 31 Juil 2019
Lets var is the main variable-
var1=var(:,:,1,:);
var2=var(:,:,2,:);
  4 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 31 Juil 2019
Thanks @Madhan
Olca Orakci
Olca Orakci le 31 Juil 2019
Thank you both :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by