⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 display_data.m

📁 英文书《Digital Signal Processing with Examples in MATLAB》附带的MATLAB实例
💻 M
字号:
% display_data    Read and plot dsp signals in dsp data folder.

% Note: You may need to modify the path to the signal in "fid":

% speech
fid=fopen('speech.bin','r');
speech=fread(fid,'int');
fclose(fid);

% seismic
fid=fopen('seismic.bin','r');
seismic=fread(fid,'int');
fclose(fid);

% friends
pals=zeros(256,256,3);
fid=fopen('friends.bin','r');
pals(:)=fread(fid,'int');
fclose(fid);

% Plots
sp_fig(1,9,6);
subplot(2,2,1);
plot(speech,'g'); grid on;
title('Speech');
subplot(2,2,3);
plot(seismic,'r'); grid on;
title('Seismic');
subplot(1,2,2);
image(pals/255);
axis square;
title('Friends');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -