How do I get my lowpass and highpass filter using the Signal Analyser App for variable x.

조회 수: 4 (최근 30일)
I can get for y, However, for my x, I could not even do the spectrum. Below is my m.file that I did to transfer the variables to my workspace.
clc
T1 = readtable('combined2wf_500.xlsx');
vars = T1.Properties.VariableNames;
figure(1)
hold on
plot(T1{:,1})
plot(T1{:,2})
x = (T1{:,2});
y = (T1{:,1});
grid on
xlabel('Time (in secs)')
ylabel('Voltage (in V)')

답변 (1개)

Raghava S N
Raghava S N 2025년 3월 26일
Hi @nao,
After running the script you have provided, on running the command
any(isnan(x))
the output is a logical 1. This means that there are missing values in the variable "x" represented by Nan. This is the reason the signal analyzer app is not allowing you to pre-process the variable "x" using filters and visualize its spectrum.
Consider replacing the Nan values with a suitable placeholder to be able to use the features of the signal analyzer app. This can be achieved using the "fillmissing" function. For more details, refer to this documentation link - https://www.mathworks.com/help/matlab/ref/fillmissing.html
Hope it helps!
  댓글 수: 1
Frantz Bouchereau
Frantz Bouchereau 2025년 5월 30일
Signal Analyzer app now supports filling missing data directly in its preprocessing mode. Fill the missing data first and then apply your filter(s).

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

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by