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일

8 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

질문:

2018년 3월 15일

편집:

2021년 5월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by