Solution
This behavior can occur if MATLAB® returns array data to LabVIEW in an orientation that LabVIEW is not expecting, such as returning a 1D row array when a 1D column array is expected or vice versa. This results in only the first value being entered in the return array in LabVIEW.
In order to prevent this behavior from impacting your code's performance, you'll need to change the return value for your operation to a 2D array instead of a 1D array and transpose the results to the orientation expected by the rest of your code. This way, the results of your array-generating operation will be properly captured when returned to LabVIEW, and can be manipulated to match what the rest of your code is expecting.