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
 
Reactions: mazdak

    mazdak

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

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…