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
Sam Chak 2023년 4월 23일
Hi @Woods, follow this example.
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')

카테고리

Help CenterFile Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by