Robert Law
Robert Law

Reputation: 11

Is there a Matlab equivalent to Python's xarray?

I've been flicking back and forth between Python and Matlab for various geoscience projects and generally find the structure of Matlab easier for modelling purposes, however, Python has some really neat packages that I can't seem to find equivalents of in Matlab.

Does anyone know if there is a Matlab equivalent to xarray (xarray.pydata.org)? This would be super helpful for organising and indexing my full data set in 3-dimensional space.

I'm looking for something that allows Matlab arrays to be indexed and stacked together into one object.

Cheers

Upvotes: 1

Views: 831

Answers (1)

sam
sam

Reputation: 2311

Have you checked cell in MatLab? It is a collection of matrices where you can access them with index.

num = 5;
your_cell = cell(num,1);
your_cell{i} = your_mat

Upvotes: 1

Related Questions