Possible Duplicate:
matlab – variable in plot title
I would like to quote the value of variables defined in the m-file in the plot such as
let us say I define
d = 1;
in the MATLAB code. I want to plot with the title such as
title('The Distribution of Some Variable when the Parameter is %d')
Please advise.
Brackets
['concatenate ' 'strings']andnum2str()converts a number (integer or decimal) to a string.