ex1_7.m
来自「Programs for the book Advanced Engineeri」· M 代码 · 共 15 行
M
15 行
% EX1_7.M Define t values (151 points, 0.0, 0.01, ...) and
% plot y(t)=(2*sqrt(3)/9)*exp(-4*t).*sin(w*t + pi/3)
t=[0:.01:1.5];
% Define y(t)
w= 4*sqrt(3); % Fixed frequency
y=(2*sqrt(3)/9)*exp(-4*t).*sin(w*t + pi/3);
% Plot the results with a grid
clf % Clear previous figures
plot(t,y)
grid
title('Plotting example')
xlabel('Time t')
ylabel('y(t)')
legend(['w=',num2str(w),' radians/sec'])
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?