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

📄 fg_10_34.m

📁 英文书《Digital Signal Processing with Examples in MATLAB》附带的MATLAB实例
💻 M
字号:
% fg_10_34    Read and plot signals w/ no color.
% speech
% Note: You must set your own path here:
fid=fopen('speech.bin','r');
speech=fread(fid,'int');
fclose(fid);

% seismic
% Note: You must set your own path here:
fid=fopen('seismic.bin','r');
seismic=fread(fid,'int');
fclose(fid);

% friends
hike=zeros(256,256);
% Note: You must set your own path here:
fid=fopen('hiking_gray.bin','r');
hike(:)=fread(fid,'int');
fclose(fid);



% Plots
sp_fig(1);
subplot(2,2,1);
plot(speech,'k'); grid on;
title('Speech');
subplot(2,2,3);
plot(seismic,'k'); grid on;
title('Seismic');
subplot(1,2,2);
colormap(gray(256));
image(hike);
axis square;
title('Image');

⌨️ 快捷键说明

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