root/applications/bdmtoolbox/tutorial/userguide/memds_example.m
@
1058
Revision 1058, 292 bytes (checked in by smidl, 14 years ago) | |
---|---|
|
Rev | Line | |
---|---|---|
[934] | 1 | clear all |
2 | ||
[1057] | 3 | DS.class='MemDS'; % data are copied into C |
[615] | 4 | DS.Data =[1 2 3 4 5 6]; |
5 | ||
[1057] | 6 | % Faster Alternative in Matlab - data are read directly from Matlab |
7 | DS2.class='mxArrayDS'; | |
8 | Data =[1 2 3 4 5 6]; | |
9 | DS2.varname = 'Data'; | |
10 | ||
[618] | 11 | M=simulator(DS); |
[1057] | 12 | %M=simulator(DS2); |
[615] | 13 | |
[1058] | 14 | M.DS_dt_ |
[1057] | 15 | %M.DS_dt_Data |
Note: See TracBrowser
for help on using the browser.