필터 지우기
필터 지우기

Convert logical vector to double

조회 수: 467 (최근 30일)
Dylan Mecca
Dylan Mecca 2018년 3월 15일
편집: AIJAZ BHAT 2021년 5월 7일
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!

채택된 답변

Birdman
Birdman 2018년 3월 15일
Just simply use double command?
a=[true false];%boolean array
double(a)
  댓글 수: 2
Santiago Apellido
Santiago Apellido 2020년 5월 13일
Thanks you!
AIJAZ BHAT
AIJAZ BHAT 2021년 5월 7일
편집: AIJAZ BHAT 2021년 5월 7일
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by