Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert binary code to analog signlal

Status
Not open for further replies.

khany1

Computer
Mar 16, 2006
1
hi,

i am fairly new to matlab, i am currently trying to convert the following binary code to an analog signal and then i need to add noise,

01010011 01101111 01101110 01100001 01110010 00100001
Reads "Sonar!"

I would really appricates it if someone could tell me how to code this in matlab.

thank you
 
Replies continue below

Recommended for you

What type of analog signal? If you are trying to convert the bitstream to something that you would see over a communications channel, you may need to consider quite a few things such as modulation type, encoding, etc. There is no "direct" conversion between digital and analog signals in the real world.

If you just want to convert the series of 1's and 0's to a series of levels so you can add "noise" to the varying levels, then just use MATLAB to multiply the 1's and 0's by the desired level value (i.e. 1=5 V, 0=0 V)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor