How to create a table with NaNs in Matlab? -


i trying create table 10 x 5 nans. start creating array nans:

n = nan(10, 5); 

then try converting table:

t = table(n); 

it puts cells 1 column, need table 5 columns 1 nan in each cell. know how that?

array2table works fine. takes matrix , converts table structure each column of matrix column in output table:

>> n = nan(10, 5); >> t = array2table(n)  t =       n1     n2     n3     n4     n5      ___    ___    ___    ___    ___      nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan     nan    nan    nan    nan    nan 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -