mcc –B sgl mixSIR2.m % if you have graphic note that i changed a few things in the matlab Betapdf function to make it work with the compiler. I just cant remember what exactly I changed, so you may need to re-look up the changes over the web.