File Exchange

image thumbnail


version (1.28 KB) by Phillip M. Feldman
convert a cell array to a double precision array


Updated 17 May 2009

View License

This function converts a cell array to a double precision array.

Usage: output= cell2num(inputcellarray)

The output array will have the same dimensions as the input cell array. Non-numeric cell contents are converted to NaNs in output.

Written by Nishaat Vasi, Application Support Engineer, The MathWorks

Cite As

Phillip M. Feldman (2021). cell2num.m (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)


why do you submit another author's (unaltered?) code - just
because it's a missing part of one of your own contributions...

it would be more prudent to ask the author to submit it him/herself and then add it to the above...


Jos (10584)


for a more flexible implementation.

And who is the author of this submission? Vasi or Feldman?

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!