plot - Syntax Error in Octave plotting -


i got following syntax error while want plot values:

       syntax error  >>> plot(freq1, abs(fft1/max(fft1)),xlabel('f(hz)'), ylabel('amplitude i(f)');                                                                              ^ 

my definitions follows:

a=x+y+z; % sinus mixture of different curves/functions  n1 = fa/0.05; % n 50 ms fft1=fft(a,n1); freq1 = [0:deltaf1:fa-fft1]; plot(freq1, abs(fft1/max(fft1)),xlabel('f(hz)'), ylabel('amplitude i(f)'); 

edit: nice stop voting me down, know question not interesting (please see below in comment answer), thank you!

you have more opening brackets ( closing ones ), that's syntax error.

it should be:

plot(freq1, abs(fft1/max(fft1)),xlabel('f(hz)'), ylabel('amplitude i(f)')); 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -