Plot the function sin (x) on the interval [0, 5]. Now generate the discrete time signal from the sine function with 6 discrete values. Using this fundamental period, generate
2 次查看(过去 30 天)
显示 更早的评论
Plot the function sin (x) on the interval [0, 5]. Now generate the discrete time signal from the sine function with 6 discrete values. Using this fundamental period, generate
回答(1 个)
Sam Chak
2023-4-23
fcn = @(x) 2*x - x.*abs(x);
fplot(fcn, [-1 1])
grid on
title({'Plot of $y = 2 x - x |x|$ over $-1 \leq x \leq 1$'}, 'interpreter', 'latex')
xlabel('x')
ylabel('y')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Signal Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!