Untitled
Anonymous
MATLAB
11/29/2026 3:26 AM
267 B
6
Indexable
Never
clc;
clear all;
close all;
% Generation of discrete-time square signal
n = 0:40;
w = 0.2*pi;
x = sign(sin(w*n));
stem(n,x,'filled');
xlabel('Discrete Time Index (n)');
ylabel('Amplitude');
title('Discrete-Time Square Signal');
axis([0 40 -1.5 1.5]);
grid on;
Editor is loading...
Leave a Comment