1 ## Copyright (C) 2006,2007,2008 Carlo de Falco
3 ## This file is part of:
4 ## OCS - A Circuit Simulator for Octave
6 ## OCS is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program (see the file LICENSE); if not,
17 ## see <http://www.gnu.org/licenses/>.
19 ## author: Carlo de Falco <cdf _AT_ users.sourceforge.net>
23 ## @deftypefn{Function File} @
24 ## {[@var{a},@var{b},@var{c}]=}Minductors(@var{string},@var{parameters},@
25 ## @var{parameternames},@var{extvar},@var{intvar},@var{t})
27 ## SBN file implementing models for inductors.
29 ## @var{string} is used to select among models. Parameters are listed
30 ## as inner items. Possible models are:
33 ## @item @var{string} = "LIN" (Linear inductor model)
35 ## @item L -> inductance value
39 ## See the @cite{IFF file format specifications} for details about
40 ## the output structures.
42 ## @seealso{prs_iff,asm_initialize_system,asm_build_system}
45 function [a,b,c] = Minductors (string,parameters,parameternames,extvar,intvar,t)
54 for ii=1:length(parameternames)
55 eval([parameternames{ii} "=" num2str(parameters(ii)) ";"])
73 error (["unknown section:" string])