MATLAB: How to create an array with the same letter but different number array Hi, How can I create an array or cell, something like Variable = {'X1','X2','X3',…,'X43'}? when i give for example the length = 43. So when I do my plots, i call put the title as title (variable(i)) Thanks! Best Answer Len = 43;V = sprintfc('X%d', 1:Len);Or with modern Matlab versions:V = compose('X%d', 1:Len);Then:title(V{i}) Related SolutionsMATLAB: Creating a cell and allocation specific text result = cell(1,length(beta));result{1} = {'Intercept'};result(2:end) = sprintfc('X%d', 1:41); MATLAB: Can i tilte a figure including back slash character A backslant (\) causes the following character to be rendered literally. So to print one in the title, use two:title('x\\y') Related QuestionHandling audio filesSolve the following system of 3 linear equation in unknowns x, y and z? How to accomplish thisHow can I play an audio, and in the middle of it, play a voice. but when the voice is played, the audio sounds 50% more slowly
Best Answer