Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

convert each matrix of cells

1 visualización (últimos 30 días)
jenifer Ask
jenifer Ask el 29 de Dic. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have 6 images. In each, I have identified a number of different special points on which to extract the attributes. (Because of the different cell)
In the first image I have 15 matrices, 3 x 3. And so there are the number of special points in each matrix image.
First, I want to transform the individual matrices of each cell into vectors. Then paste them into their own rows.
I know a simple matrix can be transformed into a vector with (:). But I can't work with that many cells.
  1 comentario
Stephen23
Stephen23 el 29 de Dic. de 2019
Editada: Stephen23 el 30 de Dic. de 2019

Respuestas (1)

Image Analyst
Image Analyst el 29 de Dic. de 2019
Try this:
s = load('gmag.mat')
Gmag = s.Gmag
% Get the size of Gmag.
[rows, columns] = size(Gmag)
% Loop over each cell of the Gmag cell array.
for col = 1 : columns
for row = 1 : rows
thisMatrix = Gmag{row, col}
% Now do something with thisMatrix.
% Careful! Many of them are empty!
end
end

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by