hi, i am new in matlab i have a problem with finding 'th14' can u help me please? it say * 'Undefined function or variable 'th14''. *
  • for i=1:1:360
th12=i/deg;
tth12(i)=th12; % tth12(i) indicates the i‟th element of the array.
th14=-1*(atan((0.08*cos(th12)-0.18-0.05*cos(th14))/(0.08*sin(th12)-0.05*sin(th14))));
tth14(i)=th14;*

 채택된 답변

Sean de Wolski
Sean de Wolski 2014년 12월 4일

0 개 추천

th14=-1*(atan((0.08*cos(th12)-0.18-0.05*cos(th14))/(0.08*sin(th12)-0.05*sin(th14))));
This is the line where th14 is defined, but the right hand side is attempting to use th14 which does not exist since it has not been defined yet.

댓글 수: 2

baris
baris 2014년 12월 4일
but this is the only function to find th14 so is there any way to define as symbol or sth to solve the equation?
syms th14
would define it as a symbol.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2014년 12월 3일

댓글:

2014년 12월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by