Implemented function that converts matlab arrays to an igor compatible format