MATLAB: Need Greek letter \epsilon_{r} in the ‘prompt’ argument of input function

inputMATLAB

Hi,
I am requesting for an user input as:
EPS_R = input('\epsilon_{r} of the material = ');
and I am getting :
epsilon_{r} of the material =
but I want it to be:
of the material =
Any help will be appreciated. Thank you!

Best Answer

Use the inputdlg function instead:
opts.Interpreter = 'tex';
EPS_Rc = inputdlg('\epsilon_{r} of the material = ', ' ', [1 35], {' '}, opts);
EPS_R = str2double(EPS_Rc);
.