How to convert string variable into boolean in Matlab?
<p>I have a matlab script and one of the variables is:</p>

<pre><code>a = 'false' % my string
</code></pre>

<p>my goal is to convert such variable into a boolean variable:</p>

<pre><code>a = false % my goal
</code></pre>

<p>is there a matlab function that allows me to convert the string into a boolean value?</p>

<pre><code>a = string2boolean('false') % I would like to have something like this
</code></pre>

<p>If there are no functions that allow to do that what could be another possible solution?</p>