convert whole code to double
조회 수: 1 (최근 30일)
이전 댓글 표시
is it possible by anyway to convert whole code to double in a single step? For operations such as sparse single format and integer format doesnt work so double format has to be used
댓글 수: 2
KSSV
2018년 9월 13일
If your input is double then the output and calculations will be in double. Any ways we can help more on knowing the code.
채택된 답변
Walter Roberson
2018년 9월 13일
No, it is not possible, as it would lead to errors because operations are not defined the same way on all of the data types. For example A([true, false]) is not the same as A([1,0])
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!