I have written a code that generates 20 strings (the number actually varies depending on the input), all of which have the names "s_idx_?" where ? is a number from 1 to 20. Is there a command that allows me to concatenate all these strings without having to type out all the names? Thanks.
MATLAB: Combining variables
concatenationdynamically named variablesevalstrings
Related Question
- Trying to call a variable with a string
- How to give different inputs for a loop in each and every iteration
- Could I use a dynamic character or string in a for loop to call a variable with different name
- Referring to variables with concatenated strings
- Is there any way to convert variables from list to arrays
- I want to assign a complete array of unknown length of values each to a separate variable. I’m using the ‘deal’ function now, but an expression can’t be inserted in that function.
Best Answer