image thumbnail

maskoverlay

version 1.0.0 (61.6 KB) by Chad Greene
A MATLAB function to easily overlay a mask.

10 Downloads

Updated 30 Aug 2021

From GitHub

View license on GitHub

maskoverlay

A MATLAB function to easily overlay a mask on a plot. Works with opaque or semitransparent masks of any specified color.

Here's an example where an opaque black mask and a semitransparent red mask have been overlaid on a pseudocolor background:

%% Opaque black mask:
maskoverlay(x,y,mask1) 

% Semitransparent red mask: 
maskoverlay(x,y,mask2,'color',[1 0 0],'alpha',0.5)

Cite As

Chad Greene (2021). maskoverlay (https://github.com/chadagreene/maskoverlay), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.