Highlighting columns in figure
조회 수: 4 (최근 30일)
이전 댓글 표시
I have made a figure showing the values of a matrix by relative colorvalues [have made use of imagesc(matrix)]. I would like two highlight two colums (say 7 and 19) by making them lighter.
As such the final result will be a two highlighted vertical bands in the figure.
Any sugestions as to how I can do this?
댓글 수: 0
채택된 답변
Desiree
2011년 8월 8일
You can use property AlphaData to make certain columns transparent:
h = imagesc(rand(10));
ad = ones(10); ad(:,2) = 0.5; ad(:,7) = 0.5;
set(h,'AlphaData',ad)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!