MATLAB Answers

Tom
0

can't add axis labels

Asked by Tom
on 11 Dec 2011
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

  0 Comments

Sign in to comment.

3 Answers

Answer by Mohsen Davarynejad on 11 Dec 2011
 Accepted Answer

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

  0 Comments

Sign in to comment.


Answer by Robert Cumming on 11 Dec 2011

plot ( magic(100) )
xlabel ( 'my xlabel' )
ylabel ( 'my ylabel' )

  0 Comments

Sign in to comment.


Tom
Answer by Tom
on 11 Dec 2011

thanks

  0 Comments

Sign in to comment.