can't add axis labels

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일

2 개 추천

xlabel('Frequency (Hz)');
ylabel('Surface Impedance');

추가 답변 (2개)

Robert Cumming
Robert Cumming 2011년 12월 11일

0 개 추천

plot ( magic(100) )
xlabel ( 'my xlabel' )
ylabel ( 'my ylabel' )
Tom
Tom 2011년 12월 11일

0 개 추천

thanks

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by