HOW to write cos^2(t) in matlap
811 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Saad Almalki
il 18 Giu 2020
Commentato: Walter Roberson
il 1 Apr 2022
HOW to write cos^2(t) in matlap
2 Commenti
Risposta accettata
madhan ravi
il 18 Giu 2020
Modificato: madhan ravi
il 18 Giu 2020
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course
0 Commenti
Più risposte (2)
Brigid Welch
il 19 Gen 2022
how to write cos(t)^2
1 Commento
Walter Roberson
il 19 Gen 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
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!