sr = 44100; % the sample rate in Hz
f1 = 200; % the frequency of the tone in Hz
f2 = 250;
f3 = 380;
d = 1; % the tone?s duration in sec
t = linspace(0, d, sr*d); % a time vector
first_component = sin(2*pi*f1*t);
second_component = sin(2*pi*f2*t);
third_component = sin(2*pi*f3*t);
inharmonic = first_component + second_component + third_component;
soundsc(inharmonic, sr);