How to create an envelope in a plot from a csv. data?
2 次查看(过去 30 天)
显示 更早的评论
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');
0 个评论
回答(1 个)
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Pulsed Waveforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!