What is the preferred way to interface MATLAB with SPICE?

143 ビュー (過去 30 日間)
Knut
Knut 2013 年 4 月 11 日
回答済み: ngadiyar93 2020 年 5 月 21 日
I have a lot of experience with MATLAB, and very little experience with SPICE (did some stuff back in university). I'd like to setup a simulation in matlab involving some electronic circuits, and preferably be able to change parameters and plot results from MATLAB. I have googled this but did not find anything conclusive?
  1 件のコメント
Aaron Mattmiller
Aaron Mattmiller 2019 年 2 月 20 日
編集済み: Aaron Mattmiller 2019 年 2 月 20 日
This is an old question, but here is an article that describes how to do it:

サインインしてコメントする。

回答 (3 件)

ngadiyar93
ngadiyar93 2020 年 5 月 21 日
You can check this link for Matlab to LTSpice: https://github.com/ngadiyar93/Matlab2LTSpice

Gerard
Gerard 2017 年 2 月 3 日
We have customers who work a lot with Spice simulation and Matlab. In general the Spice simulation is done by one of the numerous commercial simulators or an open source simulator like NgSpice. The the simulation results can then be read by a specialized toolbox and processed in Matlab. You can find some simple solutions for reading simulation outputs on stackexchange:
We have wrapped our C/C++ solution in a Matlab toolbox for our customers who use Matlab for post-processing, model extraction and characterization. This toolbox is little more complicated to use but it can handle many different file formats, it can handle huge files and it is quite fast. You can find further informations at

Saif Awwad
Saif Awwad 2015 年 5 月 8 日
Hi.
The circuit description must be compiled by SPICE. You can use MATLAB to generate such circuit description, compile the circuit in SPICE and then use SPICE's log files to plot results in MATLAB.
The issue depends on what kind of simulation/plot you are targeting. Let me know more details and maybe I can be of some help.

カテゴリ

Help Center および File ExchangeSPICE files についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by