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