Plot Venn diagram with four set using Matlab

3.1k views Asked by At

I was looking for a matlab script to plot a venn diagram for four sets of elements but in vain. Does anyone know how to do that?

1

There are 1 answers

1
anquegi On

When you need to find usefull matlab functions a great place and comunnity to visit is https://es.mathworks.com/matlabcentral/fileexchange/ it is a great community that shares many interesting matlab things. In this case there is https://es.mathworks.com/matlabcentral/fileexchange/22282-venn?focused=5178911&tab=function (suggested in a comment by @Phil Goddard) which you can use as a normal dot m file:

venn([3,4,5], [1 2 1 2])

enter image description here

you should take a look at venn.m for additional options, descriptions, references, and examples.