how to write cosdelta alphain MATLAB coding

cosd(delta+alpha)

8 comentarios

Adam Danz
Adam Danz el 3 de Abr. de 2019
Editada: Adam Danz el 3 de Abr. de 2019
That is matlab code (assuming delta and alpha are variables).
cosd() is the cosine function for inputs using degree units rather than radians.
asna akhtar
asna akhtar el 4 de Abr. de 2019
yes i have done it exactly the same still its giving me an error.
Please show us the values for delta and alpha.
Also what are the results of the following 3 lines?
size(delta)
size(alpha)
which cosd -all
asna akhtar
asna akhtar el 4 de Abr. de 2019
i am working on the topic of voltage stability for IEEE 30bus test system and I've written all the coding which is required but unable to calcultate gvsm just because of the cosine angle
<<
<<www-mathworks-com-matlabcentral-answers-uploaded_files-212011-20190404_220858.jpg>>
>>in this program k is delta difference which is the difference of sending and receiving end. I'll be grateful to you if you could help me.
asna akhtar
asna akhtar el 4 de Abr. de 2019
<<www-mathworks-com-matlabcentral-answers-uploaded_files-212012-20190404_220858.jpg>>
The links are broken.
To offer more advice, I just need this:
Please show us the values for delta and alpha.
Also what are the results of the following 3 lines?
size(delta)
size(alpha)
which cosd -all
asna akhtar
asna akhtar el 5 de Abr. de 2019
there are many values of delta and alpha because they are in 1×30 matrix form so it is not possible to write all the values.
Adam Danz
Adam Danz el 5 de Abr. de 2019
But you could provide a sample of those values and you could definitely provide the results of the three lines of code. Good luck.

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 3 de Abr. de 2019
Editada: madhan ravi el 3 de Abr. de 2019
cosd(bsxfun(@plus,Delta+Alpha)) % assuming units are degrees else use cos()

Categorías

Más información sobre Platform and License en Centro de ayuda y File Exchange.

Preguntada:

el 3 de Abr. de 2019

Comentada:

el 5 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by