NLP writing to matrix row