C Dynamically Create Array Matlab Drive