to make a specific position of the surface image transparent
1 view (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!