I tryed to write an Matlab function in Simulink. My first func like this:
function y = fcn(u, v)
coder.extrinsic('detectSURFFeatures');
boxPoints = detectSURFFeatures(u);
%scenePoints = detectSURFFeatures(v);
vBoxPoints = boxPoints.selectStrongest(100);
y = 0;
y = vBoxPoints;
But I see errors: 1. Attempt to extract field 'selectStrongest' from 'mxArray'. 2.Undefined function or variable 'vBoxPoints'. The first assignment to a local variable determines its class. 3. Error in port widths or dimensions. Output port 1 of 'detecting_cross/MATLAB Function/v' is a [400x239] matrix. Pls, help.