Reputation: 2482
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?
Upvotes: 0
Views: 3222
Reputation: 11522
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])
you should take a look at venn.m for additional options, descriptions, references, and examples.
Upvotes: 0