cellfun with conditionals in MATLAB
<p>Is it possible to use cellfun with a conditional. For example, I have a 144x53 cell array, where the first four columns are of type string, the rest are floats. However, among the numbers, there are empty cells. I wonder if it is possible to use cellfun(@(x)sqrt(x), cellarray) with my array. As it is know, its not possible due to strings and empty cells. Otherwise, this is the solution that I use,</p>

<pre><code>for n = 1:length(results)
    for k = 1:length(results(1,:))
        if ~isstr(results{n,k})
            results{n, k} = sqrt(results{n,k});
        end
    end
end
</code></pre>

<p>Otherwise, is it possible to do a vectorization here? </p>