필터 지우기
필터 지우기

How can I find a section of a graph?

조회 수: 1 (최근 30일)
wobbly
wobbly 2021년 9월 8일
답변: Chunru 2021년 9월 9일
I want to highlight a percentage of the maximum amplitude along the wave. What function will allow me to do this?

답변 (1개)

Chunru
Chunru 2021년 9월 9일
% plot the curve
t = 0:.1:5;
x = cos(2*pi*3*(t-2.5))./(1+(t-2.5).^2*2);
plot(t, x, 'b-');
% peak around 2.4-2.6
idx = find(t>2.4 & t<2.6);
hold on
plot(t(idx), x(idx), 'y-', 'LineWidth', 2)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by