www.gusucode.com > 基于matlab的钢琴曲模拟演奏 > 基于matlab的钢琴曲模拟演奏/基于matlab的钢琴曲模拟/h3.m

    function h3(t)
fs = 8000;
T = 0:1/fs:t;
fn = 1318.510;
y = sin(2*pi*fn*T);
sound(y,fs);