The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 9:25pm
Pages: 1
Send Topic Print
Help on matlab "a2d conversion" (Read 2731 times)
neoflash
Community Fellow
*****
Offline

Mixed-Signal
Designer

Posts: 397

Help on matlab "a2d conversion"
Oct 01st, 2006, 6:50pm
 
Hi, folks:

I have a waveform from analog simulator, both time and voltage values are stored in a text file. The signal represented is a digital "1,0" stream.

What wanted in matlab processing is the digital information carried in. How to convert them into a stream of one zero digital symbols, without so much useless overhead?

thanks,
Neo
Back to top
 
 
View Profile   IP Logged
haikom
Junior Member
**
Offline



Posts: 17
Germany
Re: Help on matlab "a2d conversion"
Reply #1 - Oct 4th, 2006, 12:42pm
 
Hi,

are you using the Cadence Simulation Environment? If yes, there is a new interface between Matlab and Cadence's simulation tools: http://www.mathworks.com/products/connections/product_main.html?prod_id=639&prod...
If no, I would try to get a cvs format out of the simulaor and then it is possible to read this data in Matlab or Excel.
You can also write a matlab script, which parses the result file and generates the matlab vectors.
Please specify the tools you are using. Maybe it is then easierer to help.

Kind regards,
haikom
Back to top
 
 
View Profile haikomo   IP Logged
sck236
Junior Member
**
Offline



Posts: 15

Re: Help on matlab "a2d conversion"
Reply #2 - Oct 4th, 2006, 9:41pm
 
Use dlmread function in MATLAB with a delimiter as "".

M=dlmread(filename,"",R,C)
, where R and C specify the row and column where the upper left corner of the data lies in the file.
Defining R and C is useful when you want to extract only the data of your interest.
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.