MATLAB Answers

Jagged Sine Wave Results

7 views (last 30 days)
For my Vibrations class, I was asked to plot a simple system responce seen in the image below, but the plot seems rather jagged. Is there something I am not inputting correctly?

  0 Comments

Sign in to comment.

Accepted Answer

David Hill
David Hill on 19 Sep 2020
t=0:.001:1;%need smaller increment
theta=.1*sin(20*t+pi/2);
plot(t,theta);

  0 Comments

Sign in to comment.

More Answers (1)

Vasishta Bhargava
Vasishta Bhargava on 19 Sep 2020
%if true
% code
% end
t = 0:0.005:1;
theta = 0.1*sin((20*t)+(pi/2));
plot(t,theta);

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by