Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

read & convert a text file to binary

Status
Not open for further replies.

kimo77

Newbie level 3
Newbie level 3
Joined
Apr 24, 2010
Messages
4
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
egypt
Activity points
1,307
i want to read at text file & than convert it to binary forme it there any fuction like we use in the sound(wavread,wavwrite)..&in the image(imread&imwrite) ..so if there is a simullary fn. for the text file plz tell me
thx
 

Please tell more. The context of your problem is not clear. What program or programming language are you using? What do you mean by text/binary file or form (if that's not clear from what you use)?
 
srry coz the topic is not clear...the used program is matlab..in matlab i can read an image with (imread) to numbers & than convert them to binary..we can do that also with a sound (wavread)..is there any fn. in matlab to do the same in a text file?? thx u
 
It depends on how the text file is formatted. If the data in the file are arranged in a complicated manner, the solution may be also complicated. :)

Try googling, it always works. :)
I found this:
https://www.mathworks.com/support/tech-notes/1400/1403.html
**broken link removed**
**broken link removed**
Most useful info is on Matlab's official website.
There's also a user community forum, they'll be glad to help you there:
https://www.mathworks.com/matlabcentral/

You may get more help if you post a sample of the file here. Or post a template of the data arrangement.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top