HOW to write cos^2(t) in matlap
234 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Saad Almalki
el 18 de Jun. de 2020
Comentada: Walter Roberson
el 1 de Abr. de 2022
HOW to write cos^2(t) in matlap
2 comentarios
Respuesta aceptada
madhan ravi
el 18 de Jun. de 2020
Editada: madhan ravi
el 18 de Jun. de 2020
t = 0:pi:2*pi;
cos(t).^2 % basic question , start with MATLAB Onramp course
0 comentarios
Más respuestas (2)
Brigid Welch
el 19 de En. de 2022
how to write cos(t)^2
1 comentario
Walter Roberson
el 19 de En. de 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
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!