フィルターのクリア

HOW to write cos^2(t) in matlap

234 ビュー (過去 30 日間)
Saad Almalki
Saad Almalki 2020 年 6 月 18 日
コメント済み: Walter Roberson 2022 年 4 月 1 日
HOW to write cos^2(t) in matlap
  2 件のコメント
pushpendra pratap singh
pushpendra pratap singh 2021 年 12 月 18 日
cos(t).^2
Stephen23
Stephen23 2022 年 4 月 1 日
1 - sin^2(t)

サインインしてコメントする。

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 18 日
編集済み: madhan ravi 2020 年 6 月 18 日
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course

その他の回答 (2 件)

Brigid Welch
Brigid Welch 2022 年 1 月 19 日
how to write cos(t)^2
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 1 月 19 日
If t is a scalar, then exactly like you wrote will work, cos(t)^2
If t is a vector or array, you will likely need cos(t).^2

サインインしてコメントする。


Soledad Rodriguez
Soledad Rodriguez 2022 年 4 月 1 日
yb = cos^2 (5x) / x^2
  2 件のコメント
Torsten
Torsten 2022 年 4 月 1 日
(cos(5*x)).^2./x.^2
Walter Roberson
Walter Roberson 2022 年 4 月 1 日
Also cos(5*x).^2./x.^2 and (cos(5*x)./x).^2

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by