Iteration through column multiple times
1 次查看(过去 30 天)
显示 更早的评论
I have a 16x100x150 double, C.
The first column 16 represents an individual coordinate, where Cdelete allows me to get a 1x100x150 double where it can plot a colour map around the Coordinate 1 as the squeeze turns it into 100x150.
How do I plot all 16 coordinates into the same figure where it goes through Coord 1, Coord 2, and so on? The eventual goal is to generate a colour map coming from each coordinate ALL in the same figure.
Cdelete = [2:16]
C(Cdelete,:,:) = [];
Cplot = squeeze(C);
figure(3)
imagesc(xMap,yMap,Cplot)
0 个评论
回答(1 个)
KSSV
2023-6-6
figure
hold on
for i = 1:16
cplot = squeeze(C(i,:,:)) ;
pcolor(xMap+i,yMap,cplot) ; %<--- you need to think of xMap and yMap
end
Also have a look on slice
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Map Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!