How to save strings in a loop into an array?
조회 수: 37(최근 30일)
Abdolkarim Mohammadi 2021년 4월 3일
You should first initialize the direction vector:
direction = strings (1, 200);
Then assign a value to a certain element of direction in each loop iteration:
direction (i) = "NE";