필터 지우기
필터 지우기

what is the appropriate time range that should be given to a Sinusoidal loading vs time? How many cycles within a specified time range?

조회 수: 3 (최근 30일)
what is the appropriate time range that should be given to a Sinusoidal loading vs time? How do you modify number of cycles within a time range in Matlab? I want to be able to plot p(t)=2.25*sin(2*pi*fs*t) to look like this but I do not know what time range I should give so that the plot looks like the one on the image provided. I also want to know what is the adequate number of cycles and how can I modify code to have less or more cycles within a time range. I am still confused with these sine waves.

채택된 답변

Matlab Pro
Matlab Pro 2024년 6월 24일
Here is a simple solution
p0 = 2.25;
fs = 10.37;
t = 0:0.01:4.5*pi;
y = p0*sind(2*pi*fs*t);
f = figure;
ax = axes('Parent',f);
plot(ax, t,y); grid(ax,'on');
  댓글 수: 3
juan sanchez
juan sanchez 2024년 6월 24일
Thank you very much for your clear, concise and simple explanation. I always had problems understanding amplitudes, cycles, and trigonometry. Very well explained.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by