Write a function that will prompt the user separately for afilename and extension and will create and return a string with theform ‘filename.ext’
RP Documents O MATLAB Editor. C Uero HP Documents MATLAB filename.my 3 filename.m * Untitled * 1 function ave=filename() n-input (“enter filename: ‘); ext=input(‘enter extension: ‘); ave-n+’.’text; disp(filename()); end Command Window ELLEL EL . Error using input Undefined function or variable ‘miko’. Error in filename (line 4) avent’,’+ext; enter filename: kkkk Error using input Undefined function or variable ‘kkkk’. Error in filename (line 4) ave-n ‘.’+ext; A fenter filename: Show transcribed image text RP Documents O MATLAB Editor. C Uero HP Documents MATLAB filename.my 3 filename.m * Untitled * 1 function ave=filename() n-input (“enter filename: ‘); ext=input(‘enter extension: ‘); ave-n+’.’text; disp(filename()); end Command Window ELLEL EL . Error using input Undefined function or variable ‘miko’. Error in filename (line 4) avent’,’+ext; enter filename: kkkk Error using input Undefined function or variable ‘kkkk’. Error in filename (line 4) ave-n ‘.’+ext; A fenter filename:
Expert Answer
Answer to Write a function that will prompt the user separately for a filename and extension and will create and return a string w…