root/applications/bdmtoolbox/mex/RV.m
@
937
Revision 937, 369 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 | |
[937] | 4 | if nargin<1 |
5 | names=''; | |
6 | end | |
[615] | 7 | r.class='RV'; |
[640] | 8 | if isstr(names) |
9 | names = {names}; | |
10 | end | |
[615] | 11 | r.names=names; |
12 | ||
13 | if nargin>1 | |
14 | r.sizes = sizes; | |
[630] | 15 | else |
16 | r.sizes = ones(1,length(names)); | |
[615] | 17 | end |
18 | if nargin>2 | |
19 | r.times = times; | |
[630] | 20 | else |
21 | r.times = zeros(1,length(names)); | |
[615] | 22 | end |
Note: See TracBrowser
for help on using the browser.