MATLAB: Unexpected behaviour when calling main function with 2 outputs

MATLAB

For this function, I'm expecting 2 outputs when I run the script (n,p). However, I only get one 'n' when I run. Why?
function [n, p] = SandboxFile()
clear all
clc
n = 5;
p = 6;
end

Best Answer

Call it with 2 output elements:
[n, p] = SandboxFile()
Sure about
clc
clear all
? This is unneccassary and can cause problems.