MATLAB: Hi. im attempting to create a simple input command and tab it with \t however when i run the code the (t) still appears in the command window

input

input('\tWhat item did you buy? (1 item only): ','s')
tWhat item did you buy? (1 item only):

Best Answer

If you want to use the formatting commands, you need to include a sprintf call to implement them.
This should produce the result you want:
input(sprintf('\tWhat item did you buy? (1 item only): '),'s')