I am trying to print multiple variables to the command window with accompanying text. disp does not seem to want to work, nor does fprintf. Does anyone have any idea how i can do this. I am trying to print code to look like the following, inserting variables in between text
print('The minimum value is', minY1(2), 'which occurs at x = ', minX);
which would, for example, result in
The minimum value is 69.054, which occurs at x = 5
Cheers