Calculating energy and power of a signal
Show older comments
I tried this code to calculate energy and power of the input function f(x). but I get error. how can I fix it?
syms x y z energy pow t;
f=input('enter function: ','s');
f = symfun(eval(f), x);
f=f*conj(f);
f = str2func(['@(x)' vectorize(f)]);
z(t)=integral(y,-t,t);
energy=limit(z(t),t=infinity);
pow=limit(z/t,t=infinity)
Accepted Answer
More Answers (1)
SHREEVARSHINI R
on 24 Oct 2021
0 votes
write a matlab program to find the energy and power of the signal x(t) = 10sin(10*pi*t).
Categories
Find more on Pulse and Transition Metrics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!