can't add axis labels

9 次查看(过去 30 天)
Tom
Tom 2011-12-11
hey, could someone quickly help me to add labels to my plot? i've tried but something has gone wrong (something simple i'm sure)
this is the code i've used just at the end to do my plots
plot(50:1000,z_1rec,'color','r'), hold on plot(50:1000,z_1nogaprec,'color','b'), xlabel Frequency (Hz), ylabel Surface Impedance

采纳的回答

Mohsen  Davarynejad
Mohsen Davarynejad 2011-12-11
xlabel('Frequency (Hz)');
ylabel('Surface Impedance');

更多回答(2 个)

Robert Cumming
Robert Cumming 2011-12-11
plot ( magic(100) )
xlabel ( 'my xlabel' )
ylabel ( 'my ylabel' )

Tom
Tom 2011-12-11
thanks

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by