MATLAB: Too many non-property/value arguments error occurred when applying a text box to a figure

errortext;

Here is the line:
text(2,3,'\bf fontname{times} infty','FontSize',12,'center')

Best Answer

'center' is not an option by itself. You want either 'HorizontalAlignment', 'center' or 'VerticalAlignment', 'center'
Also you appear to be missing \ before fontname and before infty: '\bf \fontname{times} \infty'
Related Question