I would like to read the number 2 from the following char:

```
'mc_parameters.E_i = '2';'

```

So far, the `' '` around the number makes it a mess, because what MATLAB sees when I try to use `sscanf`, `textscan` and `str2num` is 

```
'mc_parameters.E_i = '2';'

```

and it doesn't recognize the last `';'` as a string in itself.

Any ideas?