How to create an envelope in a plot from a csv. data?

조회 수: 2 (최근 30일)
Mathias Braun
Mathias Braun 2024년 1월 20일
댓글: Mathias Braun 2024년 1월 20일
Hey guys,
I'm struggeling right now to create an envelope to a plot from my csv. data. Could somebody pls help me?
I've got the following code already:
fileName = 'test_amplitude_100_4.csv';
t = readtable(fileName);
times = t.Var1;
distances = t.Var2-6.894;
times = seconds(times-times(3));
figure(1)
plot(times, distances, 'b-');
grid on;
hold on;
xlabel('Zeit in s');
ylabel('Entfernung in mm');

답변 (1개)

Sam Chak
Sam Chak 2024년 1월 20일
MATLAB has a function called envelope() that enables users to compute the upper and lower envelopes of a signal. You can find more information about it here:
Have you had a chance to check this out?
  댓글 수: 1
Mathias Braun
Mathias Braun 2024년 1월 20일
Yes, I check it out but I dont get what shut be my q in the envelope? Is this the distances variable?

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

카테고리

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

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by