MatLab find column number of text cell array
<p>I have a cell data type matrix containing a header and a large number of rows.</p>

<p>sample data:</p>

<pre><code>set         press       dp
32.7045     17.805965   123.75047
32.690094   17.80584    123.74992
32.6232     17.815094   123.790115
</code></pre>

<p>I am trying to find the index of a specific column using the strcmp command to search through the all the data. </p>

<pre><code>dpCol = strcmp([data{:}], 'dp')
</code></pre>

<p>This always returns </p>

<pre><code>dpCol =

     0
</code></pre>

<p>Am I using the data cell type wrong or something? Thank you!</p>