All Questions
Tagged with expression-construction string-manipulation
7
questions
2
votes
0
answers
116
views
Store pattern names in variables, and use them in Condition (/;)
I am trying to create patterns whose form is not hard-coded, and which are not explicitly directly written. For that I want to use one list of pattern names to name some parts of a ...
0
votes
0
answers
65
views
Transform String to Expression [duplicate]
I have a variable postVector and another called CHKpostVector. Both are global variables.
Only the variable ...
0
votes
0
answers
103
views
Generate a system of linear differential equations from a coefficient matrix
I want to generate a system of linear equations that is stable. For that I generated random coefficients and divided the 10 by 10 matrix by the largest eigenvalue and set the diagonal to -1:
...
6
votes
3
answers
561
views
How to convert a string into a structured list
I am trying to use an efficient notation for the timing of sounds that i can play in Mathematica.
I would like to parse the string
"{ab{c{de}}f}"
as the list ...
0
votes
1
answer
1k
views
Convert string to function with an argument
I am trying to build an expression by first writing it out as a string and then using ToExpression to convert it to an expression. However, I cannot figure out how to make expression recognize x as an ...
1
vote
1
answer
262
views
Is there a way to convert a string to a Table indicator? [closed]
I have a list like this:
list = {"k1","k2"}
I want to use the elements in the list as Table indicators:
...
2
votes
1
answer
1k
views
How to parse string to expression? [closed]
When trying to make a string an expression I see some wrong results:
...