LabEx1(Report)


Q1.40 The information displayed in the command window as a result of the whos command is - 1.4 OTHER TYPES OF SIGNALS (Optional)



tải về 92 Kb.
trang5/5
Chuyển đổi dữ liệu31.05.2023
Kích92 Kb.
#54784
1   2   3   4   5
LABEX1

Q1.40 The information displayed in the command window as a result of the whos command is -
1.4 OTHER TYPES OF SIGNALS (Optional)
Project 1.8 Squarewave and Sawtooth Signals
Answer:
Q1.41 MATLAB programs to generate the square-wave and the sawtooth wave se­quences of the type shown in Figures 1.1 and 1.2 are given below along with the sequences generated by running these programs:
% Program P1_4
% Generation of a sinusoidal sequence
n = 0:30;
f = 0.1;
phase = 0;
A = 2.5;
arg = 2*pi*f*n - phase;
x = A*square(arg,60);
clf; % Clear old graph
stem(n,x); % Plot the generated sequence
axis([0 30 -3 3]);
grid;
title('Sinusoidal Sequence');
xlabel('Time index n');
ylabel('Amplitude');
axis;



% Program P1_4
% Generation of a sinusoidal sequence
n = 0:30;
f = 0.1;
phase = 0;
A = 2.5;
arg = 2*pi*f*n - phase;
x = A*square(arg,30);
clf; % Clear old graph
stem(n,x); % Plot the generated sequence
axis([0 30 -3 3]);
grid;
title('Sinusoidal Sequence');
xlabel('Time index n');
ylabel('Amplitude');
axis;

Date: Signature:


tải về 92 Kb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương