MATLAB: I want to use someone’s name in a sentence

input

sorry if this has been asked before but i want to write a code that says x=input('hello what's your name?') and then i want to use the persons name for in the following way y=input('What is your favorite number bob?') how would i use it for any name? thank you for your help it is my first time posting here so if i didn't follow any guidlines i apologize.

Best Answer

y=input(sprintf('What is your favorite number, %s?', name))