My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
loadQucsVariable.m
Go to the documentation of this file.
1 % -*- texinfo -*-
2 % @deftypefn {Function File} {[@var{x}] =} loadQucsVariable (@var{filename}, @var{varname})
3 % Read the vector @var{x} from a Qucs dataset file @var{filename}.
4 % The variable name in the Qucs dataset must be named @var{varname}.
5 %
6 % Example
7 % @example
8 % [x] = loadQucsVariable ("actest.dat", "out.v")
9 % x =
10 % 1 + 0.5i
11 % 2 + 1.5i
12 % @end example
13 %
14 % @end deftypefn
15 
16 % Script written with Octave 3.2.4
17 % Copyright 2010 by Michael Margraf (michael.margraf@alumni.tu-berlin.de)
18 % Published under GNU General Public License (GPL V2). No warranty at all.
19 
20 function [x] = loadQucsVariable(filename, varName)
21  x = [];
22  data = loadQucsDataSet(filename);
23  x = getQucsVariable(data, varName);