clear all;close all;clc;
load ('ReceiveData.txt'); % 读取信号文本
%% 重采样
fs_original = 100e3; % 接收换能器采样率
fs = 96e3; % 重采样目标采样率
resample(ReceiveData,fs,fs_original); % 重采样
figure; % 时域波形
plot((0:length(ReceiveData)-1)/fs,ReceiveData);xlabel('time/s');ylabel('Amplitude');grid on;axis tight;
figure; % 频谱分析
plot(-fs/2:
matlab | 读取txt类型存储的信号、重采样、滤波、频谱分析、同步
于 2022-02-14 16:03:02 首次发布