In a SCRIPT, I'm able to initialize variables which is displayed as empty variables in the workspace:
mass = [];speed = [];velocity = [];
BUT when I place these same initialize variables in a FUNCTION, MATLAB does not recognize them and does not store them in the workspace.
function myvariables()mass = [];speed = [];velocity = [];
How can I execute initialize variables in a function?
Thanks, Amanda
Best Answer