to make a specific position of the surface image transparent

1 view (last 30 days)
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)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Accepted Answer

형준 이
형준 이 on 24 Jun 2022
I make it yeah!

More Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!