Читать книгу Inverse Synthetic Aperture Radar Imaging With MATLAB Algorithms - Caner Ozdemir - Страница 46
Matlab code 1.1 Matlab file “Figure1‐1.m”_________________________________
Оглавление%‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ % This code can be used to generate Figure Figure 1.1 %‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ % This file requires the following files to be present in the same % directory: % %prince.wav clear all close all % Read the sound signal "prince.wav" [y,Fs] = audioread('prince.wav'); sound(y,Fs); %play the sound N=length(y); % TIME DOMAIN SIGNAL t=0:.8/(N-1):.8; %form time vector plot(t,y,'k'); %downsample for plotting grid minor set(gca,'FontName', 'Arial', 'FontSize',12, 'FontWeight','Bold'); axis tight; xlabel('time, s'); ylabel('amplitude'); title('\ittime domain signal');