HOW to write cos^2(t) in matlap
234 次查看(过去 30 天)
显示 更早的评论
HOW to write cos^2(t) in matlap
采纳的回答
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!