HOW to write cos^2(t) in matlap

234 次查看(过去 30 天)
HOW to write cos^2(t) in matlap

采纳的回答

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
yb = cos^2 (5x) / x^2

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by