root/applications/bdmtoolbox/mex/RV.m
@
706
Revision 706, 339 bytes (checked in by smidl, 15 years ago) | |
---|---|
|
Rev | Line | |
---|---|---|
[615] | 1 | function r=RV(names,sizes,times); |
[630] | 2 | % create RV from cell of names, vector of sizes and vector of time delayes |
[615] | 3 | |
4 | r.class='RV'; | |
[640] | 5 | if isstr(names) |
6 | names = {names}; | |
7 | end | |
[615] | 8 | r.names=names; |
9 | ||
10 | if nargin>1 | |
11 | r.sizes = sizes; | |
[630] | 12 | else |
13 | r.sizes = ones(1,length(names)); | |
[615] | 14 | end |
15 | if nargin>2 | |
16 | r.times = times; | |
[630] | 17 | else |
18 | r.times = zeros(1,length(names)); | |
[615] | 19 | end |
Note: See TracBrowser
for help on using the browser.