Why is 'quaternion' not a valid class name in zeros() function?
이전 댓글 표시
I have the Sensor Fusion and Tracking Toolbox which comes with a zeros() function for creating a quaternion array with all parts set to zero.
The documentation for the function lists the following as an example use of this function:
quatZeros = zeros('quaternion')
But when I enter this exact code, I get the following error:
>> quatZeros = zeros('quaternion')
Error using zeros
CLASSNAME input must be a valid numeric or logical class name.
Why do I not seem to be able to use this function as detailed in the documentation? Am I missing a toolbox? I've reinstalled the toolbox along with my other toolboxes that might be relevant, such as the Aerospace Toolbox and the Aerospace Blockset with no resolution.
댓글 수: 3
Jan
2021년 9월 20일
The link concerns a file on your local disk. Of course we cannot open it.
If this does not work, the toolbox was not installed properly.
Steven Lord
2021년 9월 20일
Can you confirm that you are using release R2020b as this question is tagged?
Have you created any quaternion objects before trying to call the zeros function with 'quaternion' as input? If not, what happens if you do create a quaternion using its constructor and then call zeros?
답변 (1개)
SY
2021년 9월 20일
이동: Remo Pillat
2023년 5월 16일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!