Generating a Binary Signal

How do I generate a binary signal and export the file as a audio file (.wav,.mp3,etc)?
EDIT:
I want to generate a pulse that has high and lows. I would also like to be able to control the relative proximities of the highs and lows and store this pulse as a .wav file. So when I play this pulse and analyze it with an oscilloscope I expect to see something like this http://upload.wikimedia.org/wikipedia/commons/5/55/NRZcode.png with the troughs at 0 volts

댓글 수: 3

Jan
Jan 2012년 7월 21일
This question is too general to be answered efficiently. What exactly do you want and can you imagine any method to create a non-binary signal on a computer?
Jahangir
Jahangir 2012년 7월 21일
which i can later translate into binary through a device I'm building

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2012년 8월 15일

0 개 추천

You cannot control the relative proximity of the highs and lows in a .wav file, as .wav files are fixed frequency.
If fixed frequency is acceptable, then just generate your data as a column vector and use wavwrite() on it.

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

태그

질문:

2012년 7월 21일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by