I currently have a vector of unevenly spaced increasing values similar to this one:
v = [1 2 3 5 7 9 10 12 18 29]
What I would like to do is create a vector of symbolic variables such that
vsym = [x1 x2 x3 x5 x7 x9 x10 x12 x18 x29]
I know that I can create a function to produce symbolic variables with increasing indices from 1 to 10 lets say by using sym('x', [1 10]), however I am not able to find a way to quickly assign them different indices as I would desire, such as sym('x', v), whee v would be my vector.
Any help would be appreciated