Fumbled with the Matlab calculation (eliminating complex values), but left it in because some students may make similar mistakes.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.