how to write cos*cos*sin

6 ビュー (過去 30 日間)
Jose Louis
Jose Louis 2016 年 7 月 14 日
コメント済み: Azzi Abdelmalek 2016 年 7 月 15 日
how to write cos*cos*sin

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 7 月 14 日
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 日
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.

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by