Filter löschen
Filter löschen

Convert logical vector to double

467 Ansichten (letzte 30 Tage)
Dylan Mecca
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!

Akzeptierte Antwort

Birdman
Birdman am 15 Mär. 2018
Just simply use double command?
a=[true false];%boolean array
double(a)
  2 Kommentare
Santiago Apellido
Santiago Apellido am 13 Mai 2020
Thanks you!
AIJAZ BHAT
AIJAZ BHAT am 7 Mai 2021
Bearbeitet: AIJAZ BHAT am 7 Mai 2021
Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

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!

Translated by