Borrar filtros
Borrar filtros

superimpose matrices (n,n,m) to (n,n,1)

2 visualizaciones (últimos 30 días)
shubham kumar gupta
shubham kumar gupta el 12 de En. de 2021
Respondida: Steve Eddins el 12 de En. de 2021
I have a matrix a=360x360x100 (double)
I want to know how to superimpose all images and get a single matrix i.e 360x360x1 from 360x360x100
and plot that
for i = 1:100
l = data(:,i);
a100(:,:,i) = reshape(l, 360, []);
end
x = 1:size(a100,1);
y = 1:size(a100,2);
z = 1:size(a100,3);
Now I can plot all but I want to superimpose all plots just hold on and plotting not works

Respuesta aceptada

Steve Eddins
Steve Eddins el 12 de En. de 2021
Here are some options.
Compute and plot the maximum value at each pixel:
imagesc(max(a100,[],3))
Compute and plot the minimum value at each pixel:
imagesc(min(a100,[],3))
Compute and plot the sum of all the images:
imagesc(sum(a100,3))
Compute and plot the average of all the images:
imagesc(mean(a100,3))

Más respuestas (0)

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by