Is it possible to load two .png figure and add them together with 50% transparency to get a new plot?
1 view (last 30 days)
Show older comments
Is it possible to load two .png figure in MATLAB and add them together with 50% transparency to get a new plot?
0 Comments
Answers (1)
Walter Roberson
on 26 May 2015
Yes.
NewMatrix = cast((double(FirstMatrix) + double(SecondMatrix))/2, class(FirstMatrix));
2 Comments
Walter Roberson
on 26 May 2015
FirstMatrix = imread('FirstImage.png');
SecondMatrix = imread('SecondImage.png');
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!