Answer: Answer to this question for MatLab
Step-by-step explanation:
function out = write1(length,varargin)
if nargin == 1
disp(length)
end
if nargin == 2
fid = fopen(varargin{1},'w');
fprintf(fid,'%d',length) %
fclose(fid);
end
end
%varargin{1} needs to be the name of a file you already created