how i can write sine square vs intensity graph?

回答 (1 件)

Steven Lord
Steven Lord 2023 年 3 月 24 日

0 投票

The square of the sine of an angle:
A = pi/4;
sa = sin(A)
sa = 0.7071
ssa = sin(A).^2
ssa = 0.5000
Note that trying to put the ^2 between the function name and the parentheses wouldn't work. I'm not going to run this because the syntax error would prevent MATLAB from running any code in this Answer.
% ssaWouldNotWork = sin.^2(A)

カテゴリ

ヘルプ センター および File ExchangeJust for fun についてさらに検索

質問済み:

2023 年 3 月 24 日

回答済み:

2023 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by