Linked Questions

0
votes
1answer
922 views

Is it possible in mathematica to use dynamic names of variables [duplicate]

I have variables in my code following the following notation : theta12, theta13, theta14 etc.. I would check the values of all this variable so I could write an if condition for each theta but I ...
2
votes
1answer
114 views

How to joint symbolic expressions together [duplicate]

I want to joint symbolic expressions together to create a another symbolic expressions. one way to do that is as follows: ...
1
vote
1answer
41 views

Some challenge for a Table mixing between output number Variables and ToString symbols [duplicate]

How can I output a series of data, ranging from s00, s01, s02, s10, s11, s12, s20, s21, s22; by writing a table with s is a fixed, and m and n are running parameters, for example: ...
5
votes
7answers
4k views

Getting a String from a list of strings

Is there a way to write down Mathematica with a string such as: {"M","a","t","h","e","m","a","t","i","c","a"}?
17
votes
5answers
901 views

Opposite of StringSplit

What is an appropriate command that does the opposite of the following? StringSplit["a b c d e f g"," "]
11
votes
3answers
210 views

StringReplace adds “~~” to words with Tooltip

I'm adding tooltip to certain words in a text. I guess since words with tooltips are not considered as strings, it gives the ~~ operators before and after the word ...
9
votes
2answers
942 views

How to name a variable with the value of another variable?

A simple but very important (at least for me) question. In some languages for defining a variable, for example, we can do: i=10 "d"&i=30 So I have defined the variable d10, and... d10=30 ...
2
votes
5answers
826 views

How to switch from array to string?

Considering we have an array: a = {2/3, 4/5, 9/7, 3/7, 1/7, 1/9}; How can I get this to be: "2/3 4/5 9/7 3/7 1/7 1/9" ...
6
votes
3answers
960 views

Understanding Function and Variable in Mathematica for beginner [closed]

I'm reading the book of Leonid Shifrin, and I love the way the book explains the core in Mathematica. As everything is an expression, now I understand that, there ...
2
votes
1answer
461 views

How to Convert a Number to String for Export a Table

I am generating a table with 4 columns, wheras only the columns 3 and 4 have the same length. ...
2
votes
1answer
307 views

Generating plot legends [duplicate]

I want to generate a list as below for the legend of my plot, {D=0, D=0.5, D=1, ...} using the code ...
1
vote
1answer
142 views

How to generate a training set in an automatic way?

This question is related to [my previous item][1] where arithmetic with machine learning was considered. The results of the Predict command were not good because of ...
3
votes
1answer
127 views

How to use a variable within StringJoin

I would like Mathematica to symbolically line up partial derivative symbol with a value stored in variable. I wrote this simple code below ...
3
votes
1answer
155 views

Iteration variable in variable [duplicate]

Is it possible to create following list by some sort of iteration? {a1,a2,a3,...,a100} I cannot think of any way to append a to ...