I wrote a code to check the interface of Matlab and LabView. I am reading a matrix from a file and created two 1D subarrays using index array out of it. I am passing the subarray as input in the matlab script to calculate its length. With subarray 2 in the vi I am getting the result I expect. When I choose the subarray 1 as input to the Matab script, LabView crashes.
Is there any problem with my code?