Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
import data from Cadence to Matlab with engineering notation format

Subject: import data from Cadence to Matlab with engineering notation format

From: Olivier

Date: 22 Sep, 2008 13:55:03

Message: 1 of 2

Hi,
I use Cadence to simulate microelectronic circuit, but I don't really appreciate the calculator provided in the software suite. I then Use Matlab to perform derivations on the data. Cadence use the Engineering Notation (EN) to store data (maybe there's a way to change that but so far I don't know it) and obviously Matlab does not know how to deal with that.

To make things clear and avoid misunderstanding, when I talk about Engineering Notation, I talk about:
G <=> 10e9, M <=> 10e6, k <=> 10e3...

So, as I don't know if Matlab knows EN, each time I use a text editor and change all these engineering suffixes. This is such a fun and so not boring task...
My question is then:
Is there a way to import data stored in Engineering notation format in matlab ??

Thank you for your time and consideration.


Olivier

Subject: import data from Cadence to Matlab with engineering notation format

From: Andres

Date: 22 Sep, 2008 15:05:04

Message: 2 of 2

I'm not sure about how your data looks like exactly, but if it is text like

10.2M 9.00k
1.23G 3.14
...

you could try my text import function 'txt2mat' (file exchange) and use it's string replacement argument with
{{'G','e9'}, {'M','e6'}, ...}

I haven't checked this, and there might be other ways to import EN format (but I don't know them), so take this just as a quick guess.

Regards
Andres

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us