HOW to write cos^2(t) in matlap
234 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Saad Almalki
am 18 Jun. 2020
Kommentiert: Walter Roberson
am 1 Apr. 2022
HOW to write cos^2(t) in matlap
2 Kommentare
Akzeptierte Antwort
madhan ravi
am 18 Jun. 2020
Bearbeitet: madhan ravi
am 18 Jun. 2020
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course
0 Kommentare
Weitere Antworten (2)
Brigid Welch
am 19 Jan. 2022
how to write cos(t)^2
1 Kommentar
Walter Roberson
am 19 Jan. 2022
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
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!