Convert logical vector to double
467 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dylan Mecca
am 15 Mär. 2018
Bearbeitet: AIJAZ BHAT
am 7 Mai 2021
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 Kommentare
Akzeptierte Antwort
Birdman
am 15 Mär. 2018
Just simply use double command?
a=[true false];%boolean array
double(a)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!