Convert logical vector to double
467 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Birdman
le 15 Mar 2018
Just simply use double command?
a=[true false];%boolean array
double(a)
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!