Convert logical vector to double
407 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I'm looking for a way to take a logical vector and convert it to a double in the workspace. How can I do this? I can't seem to find a command to help.
Thanks in advance!
0 件のコメント
採用された回答
Birdman
2018 年 3 月 15 日
Just simply use double command?
a=[true false];%boolean array
double(a)
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!