Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87498243
integrate.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 13, 01:12
Size
549 B
Mime Type
text/x-c
Expires
Tue, Oct 15, 01:12 (2 d)
Engine
blob
Format
Raw Data
Handle
21608351
Attached To
R9411 tisue modeling
integrate.cpp
View Options
#include "matrix.h"
#include "mex.h"
#include "deltaNotch1.h"
void
mexFunction
(
int
nlhs
,
mxArray
*
plhs
[],
int
nrhs
,
const
mxArray
*
prhs
[]){
char
*
modelname
=
mxArrayToString
(
prhs
[
0
]);
double
*
state
=
mxGetPr
(
prhs
[
0
]);
double
*
neighb
=
mxGetPr
(
prhs
[
1
]);
double
*
params
=
mxGetPr
(
prhs
[
2
]);
DeltaNotch1
dn
(
modelname
);
dn
.
setContext
(
neighb
);
dn
.
setParams
(
params
);
integrate
(
dn
,
state
,
0
,
1
,
0.1
);
plhs
[
0
]
=
mxCreateDoubleMatrix
(
dim
,
1
,
mxREAL
);
double
*
output
=
mxGetPr
(
plhs
[
0
]);
for
(
int
i
=
0
;
i
<
dim
;
i
++
){
output
[
i
]
=
state
[
i
];
}
}
Event Timeline
Log In to Comment