Correct demo files to avoid MATLAB warnings