답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 14일

0 개 추천

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

댓글 수: 2

Jose Louis
Jose Louis 2016년 7월 15일
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 2016년 7월 15일
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

댓글을 달려면 로그인하십시오.

Star Strider
Star Strider 2016년 7월 15일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

질문:

2016년 7월 14일

댓글:

2016년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by