How to convert cell array of string numbers into numerical vector
<p>I am using Matlab and I have the following data:</p>

<pre><code>a = {'3' '11' '7'}; % This is what I have.
</code></pre>

<p>My goal is to use a function to convert such cell into a vector having the following shape:</p>

<pre><code>b = [3 11 7]; % What I need to get!
</code></pre>

<p>If I try to use the <code>b = cell2mat(a)</code> function the result that I get is this number: <code>b = 3117;</code> which is not what I want.</p>

<p>What function should I use to reach my goal? If possible please do not use for loops but just Matlab functions.</p>