필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Need help in writing this equation in MATLAB.

조회 수: 2 (최근 30일)
passioncoding
passioncoding 2019년 3월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to make objective function in MATLAB and trying to write this equation in MATLAB but donot know how write and make function.
I tried this so far. not sure if its correct or not
function d = Shortestdistance( x,y,t )
d=sqrt((x(t+1)-x(t))^2-(y(t+1)-y(t))^2);
end
function theta(x,y)= Pathsmoothness (i,N,x,y)
theta(i,i+1) =atan((yi+1)-(yi))/((xi+1)-(xi));
theta2(i,N+1) =atan(((yN+1)-(yi))/((xN+1)-xi));
end
  댓글 수: 2
Rik
Rik 2019년 3월 11일
Have a read here (or here for more general advice). It will greatly improve your chances of getting an answer.
You are not showing what you tried. That makes it either noattempt or doit4me. If you fix this issue with your question by editing it, it will automatically reopen.
passioncoding
passioncoding 2019년 3월 18일
I have edited my question and shown what I have tried

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by