hello. why i cannot edit the title.

13 次查看(过去 30 天)
ebie irene
ebie irene 2018-12-27
i try to change the title but the output title still remain the same :
ylabel('Frequency [kHz]','Parent',axeAct);

回答(1 个)

Image Analyst
Image Analyst 2018-12-27
That line of code changes the text beside the vertical, Y, axis, not the "title" over the whole graph.
Use title() if you want to change the title over the whole graph.
title(axeAct, 'Frequency [kHz] vs. X'); % Change title
ylabel(axeAct, 'Frequency [kHz]'); % Change y label
xlabel(axeAct, 'X'); % Change x label

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by