image thumbnail

EXPO 2011 Signal Processing Workflow Demo Files

by

 

MATLAB EXPO 2011 Signal Processing Workflow Demo Files

hardware_dspsyso.m
%% System Objectɂ鉹f[^擾
clear all, close all
%% Object̒`
% Audio In
hain = dsp.AudioRecorder('SampleRate', 22050,'NumChannels',1);
% File Write
hmfw = dsp.AudioFileWriter('wave_from_matlab.wav','SampleRate', 22050,...
	'FileFormat','WAV');
% Scope
hts = dsp.TimeScope('SampleRate',22050, 'YLimits',[-1.5 1.5], 'TimeSpan', 5, 'Grid', true);	% Time Scope
% haout = dsp.AudioPlayer('SampleRate',22050);
%% Xg[~O
tic
while toc < 5
	out = step(hain);		% Audio In
	step(hmfw,out);			% File Write
	step(hts,out);			% Plot
% 	step(haout,out);		% output
end
%% IuWFNg̃[X
reset(hts)
release(hain);
release(hmfw);
release(hts);
clear all

Contact us