Matlab_4_sol_3 - 'Sample Index'fontsize,12'fontname'Times New Roman ylabel'Magnitude X(K'fontsize,12'fontname'Times New Roman 3 Code 3 s=ones(1,5

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Matlab lab 4 solution Code 1. Code 1: s=ones(1,5); x=fft(s,5); stem(0:4,abs(x)); grid on ; set(gca, 'FontSize' ,12, 'fontname' , 'Times New Roman' , 'XColor' , 'k' , 'YColor' , 'k' ); h_legend=legend( 'FFT' ); set(h_legend, 'fontsize' ,10, 'fontname' , 'Times New Roman' ); xlabel( 'Sample Index' , 'fontsize' ,12, 'fontname' , 'Times New Roman' ); ylabel( 'Magnitude X(K) ' , 'fontsize' ,12, 'fontname' , 'Times New Roman' );
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. Code 2: s=ones(1,5); x=fft(s,10); stem(0:9,abs(x)); grid on ;xlim([0 9]); set(gca, 'FontSize' ,12, 'fontname' , 'Times New Roman' , 'XColor' , 'k' , 'YColor' , 'k' ); h_legend=legend( 'FFT' ); set(h_legend, 'fontsize' ,10, 'fontname' , 'Times New Roman' ); xlabel(
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 'Sample Index' , 'fontsize' ,12, 'fontname' , 'Times New Roman' ); ylabel( 'Magnitude X(K) ' , 'fontsize' ,12, 'fontname' , 'Times New Roman' ); 3. Code 3: s=ones(1,5); x=fft(s,512); stem(0:511,abs(x)); grid on ;xlim([0 511]); set(gca, 'FontSize' ,12, 'fontname' , 'Times New Roman' , 'XColor' , 'k' , 'YColor' , 'k' ); h_legend=legend( 'FFT' ); set(h_legend, 'fontsize' ,10, 'fontname' , 'Times New Roman' ); xlabel( 'Sample Index' , 'fontsize' ,12, 'fontname' , 'Times New Roman' ); ylabel( 'Magnitude X(K) ' , 'fontsize' ,12, 'fontname' , 'Times New Roman' );...
View Full Document

This note was uploaded on 01/03/2012 for the course EEL 3135 taught by Professor ? during the Fall '08 term at University of Florida.

Page1 / 3

Matlab_4_sol_3 - 'Sample Index'fontsize,12'fontname'Times New Roman ylabel'Magnitude X(K'fontsize,12'fontname'Times New Roman 3 Code 3 s=ones(1,5

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online