How to convert a table containing numbers and booleans to a double array?
Show older comments
using table2array I get a string array, but I need an array of numbers where the booleans become 0 or 1 respectivly. double(table2array(arr)) results in NaN for every boolean value
2 Comments
the cyclist
on 5 Jul 2024
Edited: the cyclist
on 5 Jul 2024
It would be easier for us to suggest a solution if you uploaded a representative sample of your data. You can use the paper clip icon in the INSERT section of the toolbar.
hanspeter
on 5 Jul 2024
Accepted Answer
More Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!