HOW to write cos^2(t) in matlap
234 ビュー (過去 30 日間)
古いコメントを表示
HOW to write cos^2(t) in matlap
2 件のコメント
採用された回答
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
0 件のコメント
その他の回答 (2 件)
Brigid Welch
2022 年 1 月 19 日
how to write cos(t)^2
1 件のコメント
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
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!