HOW to write cos^2(t) in matlap
234 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Saad Almalki
le 18 Juin 2020
Commenté : Walter Roberson
le 1 Avr 2022
HOW to write cos^2(t) in matlap
2 commentaires
Réponse acceptée
madhan ravi
le 18 Juin 2020
Modifié(e) : madhan ravi
le 18 Juin 2020
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course
0 commentaires
Plus de réponses (2)
Brigid Welch
le 19 Jan 2022
how to write cos(t)^2
1 commentaire
Walter Roberson
le 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
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!