File Exchange

image thumbnail

Sonar Demo

version (7.14 KB) by

Sonic distance measurement using Windows sound card for data acquisition.

9 Ratings



View License

In this demo the Windows sound card is used as a data acquisition device. A chirp waveform is played out the speaker and captured by the microphone concurrently. The time delay between pitch and catch indicates separation distance. The time delay is determined using signal processing concepts (cross correlation and Hilbert pre-envelope). A graphical user interface makes operaton simple. This demo illustrates the basic principle; distances are not calibrated for accuracy.

Comments and Ratings (10)

david via

deep sing

i tried it by playing a sample wav file..but the execution of sonar_anal file gives the follwing error "Input argument "fig" is undefined". Can u elaborate on ways to execute the sonar demo considering my novice exposure to matlab

Muhammad Shahzad


Muhammad Shahzad

for checking

magrini antonio

neila castellanos lozano

lalit dhingra

ver good

Mohamed Alzebdah

Has a good Accuracy in long distance insted of small distance.Could be improved if the ability of collaboration is added.
But in the overall "Well done" and Thank you.

Vladimir Molchanov


Updated license



MATLAB Release
MATLAB 6.1 (R12.1)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video