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.

how to load signal from the hspice for matlab simulation?

Status
Not open for further replies.

carlson

Member level 3
Joined
Mar 11, 2005
Messages
61
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,288
Activity points
1,695
I see a matlab language to load signal from the hspice results,but there are some functions such as 'loadsig,evalsig' which matlab show they are undefined. And my matlab version is 6.5. What's wrong? Can you give the proper matlab language? Thank you!!!
the language is:

% load signals from first run and calculate Ti
m = loadsig('middlebrook1.ac0');
ti = evalsig(m, 'I_xt_vy')./evalsig(m, 'I_xt_vx')
 

Re: how to load signal from the hspice for matlab simulation

Include a .PRINT statement with the varaibles you want to write down. This will create a text file with lists containing the variables you choose

Then make a Mat1ab funtion that reads inside the output file to recover your data
 
  • Like
Reactions: mazdak

    mazdak

    Points: 2
    Helpful Answer Positive Rating
you need a hspice toolbox, try the link
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top