Matlab programs to calculate mean square flux noise (MSFN) of superconducting SQUID or qubit loop.