Borrar filtros
Borrar filtros

Taking one dimension of a matrix

26 visualizaciones (últimos 30 días)
Anwesh Saha
Anwesh Saha el 2 de Feb. de 2023
Respondida: Dyuman Joshi el 2 de Feb. de 2023
I have a 972X48X128 matrix double, and I want to save the first 2D matrix of the 3D matrix in another variable of dimension 1X48X128.
How do I accomplish this?

Respuesta aceptada

Dyuman Joshi
Dyuman Joshi el 2 de Feb. de 2023
in = rand(972,48,128);
out = in(1,:,:);
size(out)
ans = 1×3
1 48 128

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by