Slice only returns black images even after importing the colormap
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sascha Power
el 19 de Abr. de 2021
Respondida: Sascha Power
el 24 de Abr. de 2021
I have some trouble building the slice plots.
even with the thread https://de.mathworks.com/matlabcentral/answers/496845-slice-plot-gives-black-surfaces it didnt help me alot because even when i set the edgecolor to none it return black images as if it only plots the data without the colormap.
How can it be fixed? Is there a way to import the colormap into slice?
This is my code:
[pzt,map] = imread('*.gif');
A(:,:,:)=double(pzt(:,:,1,:));
slice(1:size(A(:,:,:),1), 1:size(A(:,:,:),2), 1:size(A(:,:,:),3)/10, double(A(:,:,1:10:50)), [], [], 1:size(A(:,:,:),3)/10)
colormap(map)
h.FaceColor = 'interp';
h.EdgeColor = 'none';
This is my result:
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre White en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!