how to write cos*cos*sin

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 14 de Jul. de 2016

0 votos

f=@(x) cos(x)*cos(x)*sin(x)

2 comentarios

Jose Louis
Jose Louis el 15 de Jul. de 2016
Matlab does not accept that, for example, if I have three angles (Alpha, Beta, Gama) and I need to solve X= cos(Alpha)*Sin(Beta)* sin(Gama) Matlab does not accept that
Azzi Abdelmalek
Azzi Abdelmalek el 15 de Jul. de 2016
There is nothing about solving in your question, please edit your question and make it clear, explain what are you data and what are your unknown variables

Iniciar sesión para comentar.

Star Strider
Star Strider el 15 de Jul. de 2016

0 votos

You have to use element-wise operations:
ccs = @(x) cos(x).*cos(x).*sin(x);
See Array vs. Matrix Operations for a full explanation of the difference.

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 14 de Jul. de 2016

Comentada:

el 15 de Jul. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by