Write a program with the aim of performing an audiometry tes
Write a program with the aim of performing an audiometry test at MATLAB. The program should be as interactive as possible. For example, at first, which ear is to be tested should be chosen so that the sound is only given to that channel of the ear. In addition, whether the test frequency increases automatically or manually should be asked as a parameter. The frequencies of the person being tested should be entered by the user as well as whether they are hearing or not. The sound intensity setting for each test frequency must be present in dB, and the audiometric chart should be displayed at the end of the test. The program should be prepared with MATLAB GUI.
In GUI your group name must be appear, also the frequency should be select as:
[750 1000 1250 1500 1750 2000]
Solution
solution;
1)matlab code for audiometry test is as follows
matlab code:
clc;
clear all;
close all;
Name=input(\'enter name of person being tested\');
a=input(\'enter L for left ear and R for right ear\');
if(a==L)
b=input(\'enter 0 for start sound and 1 for stop sound\');
if(b==0)
fprintf(\'sound is on\');
c=input(\'enter 0 raise sound automatically and 1 for raise it manually\');
if(c==0)
for i=750:250:2000
S=input(\'enter 0 for hearing and 1 for not hearing\');
end
plot(i,S)
title(\'graph of hearing\')
xlabel(\'value of sound intensity in DB\');
ylabel(\'0 if hearing and 1 if not hearing\');
else
for m=1:6
i=input(\'value of sound intensity\');
S=input(\'hearing 0 or not 1\');
end
plot(i,S)
title(\'graph of hearing manually\')
xlabel(\'sound intensity in DB\');
ylabel(\'0 if hearing and 1 if not hearing\');
end
else
fprintf(\'sound is off\');
end
else
c=input(\'enter 0 raise sound automatically and 1 for raise it manually\');
if(c==0)
for i=750:250:2000
S=input(\'enter 0 for hearing and 1 for not hearing\');
end
plot(i,S)
title(\'graph of hearing\')
xlabel(\'value of sound intensity in DB\');
ylabel(\'0 if hearing and 1 if not hearing\');
else
for m=1:6
i=input(\'value of sound intensity\');
S=input(\'hearing 0 or not 1\');
end
plot(i,S)
title(\'graph of hearing manually\')
xlabel(\'sound intensity in DB\');
ylabel(\'0 if hearing and 1 if not hearing\');
end
else
fprintf(\'sound is off\');
end
end

