The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design >> Mixed-Signal Design >> Help on matlab "a2d conversion"
https://designers-guide.org/forum/YaBB.pl?num=1159753822

Message started by neoflash on Oct 1st, 2006, 6:50pm

Title: Help on matlab "a2d conversion"
Post by neoflash on Oct 1st, 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

Title: Re: Help on matlab "a2d conversion"
Post by haikom on 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_name=Cadence%20Virtuoso%20AMS%20Designer%20Simulator
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

Title: Re: Help on matlab "a2d conversion"
Post by sck236 on 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.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.