Untitled

Anonymous
MATLAB
11/29/2026 3:28 AM
269 B
6
Indexable
Never
clc;
clear all;
close all;

% Generation of Discrete
Sinusoidal Signal

A = 2;
w = 0.2*pi;

n = 0:30;

x = A*sin(w*n);

% Plot the discrete signal
stem(n,x,'filled');

xlabel('Sample Index (n)');
ylabel('Amplitude');
title('Discrete-Time Sinusoidal
Signal');

grid on;
Editor is loading...
Leave a Comment