MATLAB Answers

Error in Y label

20 views (last 30 days)
Cy'an Tebo
Cy'an Tebo on 2 Mar 2021
Edited: Jan on 2 Mar 2021
So I was trying to make graph for my homework assignment on Matlab online version using this code:
% disp("HM Problem 3")
grid on;
xlabel('Input Values','fontsize',10)
kylabel('Value of the function','fontize',10)
title('function 1','fontzie',10)
But when I enter my code is says "Error using Unrecognized property fontzize for class tex." and then another error saying "Error in ylabel(line 73) set (h, 'string', string, prvpairs{:});

Accepted Answer

Jan on 2 Mar 2021
Edited: Jan on 2 Mar 2021
In the code you have:
kylabel('Value of the function', 'fontize', 10)
title('function 1', 'fontzie', 10)
The error message says:
Unrecognized property fontzize for class tex
Neither "fontize" nor "fontzize" nor "fontzie" are correct, but "fontsize".
But maybe it is a typo in the forum only. The "kylabel" is surprising also.
Please copy&paste the code and the complete error message.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!