필터 지우기
필터 지우기

Inserting the symbolic variable in atan results in an error. How can I resolve this error?

조회 수: 2 (최근 30일)
syms theta [1 6] matrix
syms fk [6 1] matrix
syms x
t1 = T(theta(1,1),theta(1,2),theta(1,3),theta(1,4),theta(1,5),theta(1,6));
fk(1,1) = t1(1,4);
fk(2,1) = t1(2,4);
fk(3,1) = t1(3,4);
atan(t1(3,2)/t1(3,3))
err : Check for missing argument or incorrect argument data type in call to function 'atan'
How can I resolve this error?

답변 (1개)

Shushant
Shushant 2023년 3월 15일
To resolve the error you are facing, do the following:
  1. Check if t1(3,2) and t1(3,3) exists.
  2. Debug your code and check whether the output you get from "T" (which I assume to be a function) is as you expected.
I also tried passing symbolic variables into the "atan" function and didn't get any errors.
syms x y
t1 = x+4;
t2 = y-6;
atan(t1/t2)
ans = 
Unfortunately, I was unable to reproduce the issue at my end due to the missing function or variable "T". So, if these steps don't solve your issue, in order to better assist you, kindly share your function "T".

카테고리

Help CenterFile Exchange에서 Assumptions에 대해 자세히 알아보기

태그

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by