to make a specific position of the surface image transparent
1 次查看(过去 30 天)
显示 更早的评论
in making 3d image by 3d data,
I want to make low value of data transpartent so that portion of high value remains
i think some people interested that question (https://kr.mathworks.com/matlabcentral/answers/515658-make-white-portions-of-slice-of-flow-data-transparent). but i failed to apply .....
my code and results are in below. please somebody help me.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
%% CODE
C1(C1<2.1) = 10; % low value → high value (to highlight the high value data
H = slice(C1, [], [], 1:size(C1,3));
set(H, 'edgecolor', 'none', 'facecolor', 'interp'); alpha(.04);
colormap("hot"); axis equal; axis tight; grid off; caxis([0 4.5]); colorbar;
view(3)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!