Does isdouble works in MATLAB
조회 수: 42 (최근 30일)
이전 댓글 표시
I have fixed-point toolbox installed for my MATLAB, but, the 'isdouble' function is not working. Is there any alternate function to check if a variable is double?
Thanks,
댓글 수: 0
답변 (1개)
Matt Fig
2012년 9월 24일
편집: Matt Fig
2012년 9월 24일
A = magic(3);
B = single(A);
isa(A,'double')
isa(B,'double')
If you need the isdouble function but don't have it, you can easily make your own by using the ISA function.
What version are you using? Type this at the command line:
version
.
.
.
EDIT
You know that the isdouble function only works on fi objects, correct?
A = magic(3);
Afi = fi(A);
isdouble(A) % A is not an fi object, this will error.
isdouble(Afi) % A is an fi object, this won't error.
참고 항목
카테고리
Help Center 및 File Exchange에서 Functions for Programming and Data Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!