Draw Venn Diagram of any number of inputs (version 2)
Version 2.0.0 (1.44 KB) by
Sambit Supriya Dash
It's a function to draw the venn diagram of any number of input values with legends, sizes and customized colors (better intersection shown)
Download the function and keep the function in the same folder/directory as MAIN script has been kept.
For example, paste the following code as the MAIN script (version 2):
close all; clear all; clc; % CLEANING
% Define the input sets
sets = {'A', 'B', 'C', 'D', 'E'};
% Define the sizes of each set
sizes = [10, 20, 15, 5, 12];
% Define the colors for each set
colors = {'r', 'g', 'b', 'm', 'c'}; % edittable colours i.e. JET, SUMMER, etc...
DrawVennDiag2(sets,sizes,colors) % Execution of the function
Cite As
Sambit Supriya Dash (2024). Draw Venn Diagram of any number of inputs (version 2) (https://www.mathworks.com/matlabcentral/fileexchange/126250-draw-venn-diagram-of-any-number-of-inputs-version-2), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Draw Venn Diagram of any number of inputs
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
2.0.0 |