Octave: How to turn a vector of integers into a cell array of strings?
问题 In Octave: Given a vector a = 1:3 How to turn vector "a" into a cell array of strings {'1','2','3'} (Output of this:) ans = { [1,1] = 1 [1,2] = 2 [1,3] = 3 } ( question end ) Further information: my aim is to use a as the input of strcat('x',a) to get ans = { [1,1] = x1 [1,2] = x2 [1,3] = x3 } Other solutions how to reach this aim are welcome, but the main question is about getting an array of strings directly from a vector. This question is a follow-up from cell array, add suffix to every