### Help with Matlab scripting

Posted:

**Sun Sep 02, 2018 12:01 pm**Hi,

I've seriously tried everything, yet I can't figure out what is the problem.

The matlab tutorials works fine, that means that there is no problem with the matlab engine calling, yet when I try to write a basic scenario the whole system crash.

Please help.

here are the matlab code (since I can't attach them as files):

Many thanks,

Yael

I've seriously tried everything, yet I can't figure out what is the problem.

The matlab tutorials works fine, that means that there is no problem with the matlab engine calling, yet when I try to write a basic scenario the whole system crash.

Please help.

here are the matlab code (since I can't attach them as files):

Code: Select all

```
function box_out = OV_EFP1_Initialize(box_in)
disp('Matlab initialize function has been called.')
box_out = box_in;
end
function box_out = OV_EFP1_Process(box_in)
for i = 1: OV_getNbPendingInputChunk(box_in,1)
[box_in, start_time, end_time, matrix_data] = OV_popInputBuffer(box_in,1);
box_in = OV_addOutputBuffer(box_in,1,start_time,end_time,matrix_data);
end
% Pass the modified box as output to continue processing
box_out = box_in;
end
function box_out = OV_EFP1_Uninitialize(box_in)
disp('Matlab uninitialize function has been called.')
box_out = box_in;
end
```

Yael