Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to delete/alphadata values of 3d data outside polygon without change the dimensions of data

1 回表示 (過去 30 日間)
Shakir Hussain
Shakir Hussain 2019 年 3 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
We can delete the values of matrix outside polygon as
data = 12*17*6
x,y,S.X and S.Y are belongs to polygon
isin = inpolygon(X,Y,S.X,S.Y);
data(~isin) = [ ]
but it changes the dimension of data from 3d to single column
Secondly we can also use alphadata for 2d data easily as
imagesc(2ddata) 'AlphaData',~isin(2ddata))
1) How we can use the AlphaData for 3d data?
2) How we can delete values of 3d data outside polygon by keeping the data in same dimension

回答 (0 件)

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by