MatLab Question Using help and Simulating Noise Function ft

MatLab Question

Using \'help\' and Simulating Noise Function f(t) is defined as f(t) = sin (2 pi t) - sin (pi t)/pi t Calculate the values of this function for t between 1 and 10.

Solution

Defined a function that takes t as input and compute as mentioned in your question. Copy the fucntion definition in file func.m and then then run on terminal the for loop.

function y = func(t)
y = (sin(2*pi*t) - sin(pi*t))/pi;
end

for t=1:.0001:10;

val = func(t)

MatLab Question Using \'help\' and Simulating Noise Function f(t) is defined as f(t) = sin (2 pi t) - sin (pi t)/pi t Calculate the values of this function for

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site