function append_test x = 1; save("at_file","x") y = 2; save("-append","at_file","y") clear load("at_file") if ~exist("y") error("y not found") end if ~exist("x") error("x not found") end