Azzera filtri
Azzera filtri

Convert logical vector to double

467 visualizzazioni (ultimi 30 giorni)
Dylan Mecca
Dylan Mecca il 15 Mar 2018
Modificato: AIJAZ BHAT il 7 Mag 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!

Risposta accettata

Birdman
Birdman il 15 Mar 2018
Just simply use double command?
a=[true false];%boolean array
double(a)

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by