How can I represent this equation on MATLAB

How can I represent this equation on MATLAB
𝑥(𝑡) = 7 𝑐𝑜𝑠 (3𝜋𝑡) 𝑤ℎ𝑒𝑟𝑒 0≤𝑡≤4

 Accepted Answer

Extend the example to your case.
n = 100 ;
t = linspace(0,4,n) ;
x = 2*sin(3*pi*t) ;
plot(t,x)

More Answers (0)

Asked:

on 28 Apr 2022

Answered:

on 28 Apr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!