Is it possible to output the string contents of a variable to a prompt or dialog title for inputdlg? I would also like to seed the first position of the created cell with the person's name.
It would look something akin to:
————————————-
quanShoppers = 3;
namesList = {'Sally', 'Fred', 'John'};
for n=1:quanShoppers
prompt = {'Enter item for' namesList(n), 'Enter price paid'}; dlg_title = 'Shopping list for' namesList(n); groceryList = {namesList(n),inputdlg(prompt, dlg_title, 1)};
end
————————————
For the first iteration, the expected outputs will look like:
Shopping list for Sally
Enter item for Sally
Enter price paid
Best Answer