Apply transparency to an imagesc figure
110 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I would like to apply transparency to a figure generated by imagesc (probably, it does affect).
I've seen that the function 'alpha' does that. I've tried the following line but it gets me and error. The image is I3
Code:
imagesc([0.3 0.75], [0.42 1.1], I3);
Line tried:
alpha(I3,'clear',0.1)
Error:
Error using alpha
Too many input arguments.
Error in Monopulse_Multipathv3 (line 175)
alpha(I3,'clear',0.1)
Could somebody help me?
Thanks in advanced.
Raúl.
0 件のコメント
採用された回答
Jan
2013 年 4 月 8 日
What is "I3"? Dod you read the docs of alpha? You do not find a calling method with 3 inputs there. The error message tells you the same.
その他の回答 (1 件)
r.vaghefi
2017 年 9 月 5 日
You can use the following code:
imagesc([0.3 0.75], [0.42 1.1], 'AlphaData', .1)
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!