フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Trouble in writing equation

1 回表示 (過去 30 日間)
passioncoding
passioncoding 2019 年 3 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to create a function for following equation but getting no luck.
pic.png
I tried the following code but i dont know its correct or not.Kindly help me
function [obj2] = Calculateangle(x,y)
for i=0:N
brg= atan2(y(i+1)-y(i))/(x(i+1)-x(i));
brg2= atan2(y(N+1)-y(i))/(x(N+1)-x(i));
end
obj2=brg-brg2
end

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by