Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Mar 16, 2006
Messages
1
Location
GB
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
 
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

Back
Top