I’m solving a differential equation several times where I vary a parameter, say `Kp = linspace(1,5,5)`

. The result is a vector of vectors (time series), say `vec`

is a vector (1D array) of vectors (time series). I then want to plot these plots in the same plot window. If `t`

is the time vector, I then want to plot:

```
plot(t,vec)
```

However, I’d also like to insert the values of `K`

as labels in the plots. In essence:

```
plot(t,vec,label=["Kp = $(Kp[1])" "Kp = $(Kp[2])" ....]
```

where `$`

is supposed to indicate string interpolation.

Problem 1: will this work? (I haven’t been able to make it work yet…)

Problem 2: will it work with the LaTeXString package? I like to use LaTeX syntax, i.e.:

```
L"$K_p = $ $(Kp[1])"
```

where the first pair of symbols `$`

bracket the LaTeX math expression, while the third time symbol `$`

appears, it is meant as string interpolation…

Problem 3: is it even possible to use string interpolation *within* the LaTeX `$`

brackets??

Sorry if the explanation is convoluted.