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!

 Réponse acceptée

Birdman
Birdman le 15 Mar 2018

8 votes

Just simply use double command?
a=[true false];%boolean array
double(a)

2 commentaires

Santiago Apellido
Santiago Apellido le 13 Mai 2020
Thanks you!
AIJAZ BHAT
AIJAZ BHAT le 7 Mai 2021
Modifié(e) : AIJAZ BHAT le 7 Mai 2021
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by