HOW to write cos^2(t) in matlap
조회 수: 234 (최근 30일)
이전 댓글 표시
HOW to write cos^2(t) in matlap
댓글 수: 2
채택된 답변
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!