📄 fg_10_34.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 + -