I'm looking for a way to print the value of a variable to the screen in Psychtoolbox (Matlab). I'm looking for something like fprintf
: eg. fprintf('%s%d\n','Your score: ', score);
I'm guessing that DrawFormattedText()
is the function I'm looking for, but can someone advise how to add a variable that isn't a part of the string?
Thanks.