Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Trouble in writing equation

1 Ansicht (letzte 30 Tage)
passioncoding
passioncoding am 12 Mär. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by