Filter löschen
Filter löschen

to make a specific position of the surface image transparent

1 Ansicht (letzte 30 Tage)
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)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Akzeptierte Antwort

형준 이
형준 이 am 24 Jun. 2022
I make it yeah!

Weitere Antworten (0)

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by