Error using tsa function - Error using matlab.internal.math.interp1 Sample points must be unique.
古いコメントを表示
While I've allready succesfully used the tsa function in the past, I stumbled upon the error as shown below, which I'm not able to get rid of. Intuitively I tried using the unique function to exclude possible duplicates in my TachoPulseTimes vector, but this didn't appear to solve the issue. I also tried swapping the sampling frequency argument fs for the corresponding time vector to make sure both the sampling time vector and tacho pulse times would start and end on equal time stamps, but with no luck. Any help would be much appriciated given I'm completly stuck at the moment.

load('TSA_DATA.mat')
AccData = upsample(tsaData.AccData,100);
fs = tsaData.SampFreq;
TachoPulseTimes = tsaData.TachoPulseTimes;
pprTacho = tsaData.pprTacho;
accDataTsaRaw = tsa(AccData,fs,TachoPulseTimes,"PulsesPerRotation",pprTacho);
Note: The accelerometer data was downsampled with a factor 100 to be able to include the data as attachment
Many thanks in advance,
Lars
9 件のコメント
Mathieu NOE
2024 年 4 月 18 日
hi
pls provide the tsa function ....
Torsten
2024 年 4 月 18 日
Lars Dierickx
2024 年 4 月 18 日
Oops! I overlooked that in your description. Let me duplicate the error message first.
load('TSA_DATA.mat')
AccData = upsample(tsaData.AccData,100);
fs = tsaData.SampFreq
TachoPulseTimes = tsaData.TachoPulseTimes;
pprTacho = tsaData.pprTacho;
accDataTsaRaw = tsa(AccData, fs, TachoPulseTimes, "PulsesPerRotation", pprTacho);
Mathieu NOE
2024 年 4 月 18 日
does the problem arrise only on a particular data set ? (if it had worked in the past , what has changed since ?)
Mathieu NOE
2024 年 4 月 18 日
& can you provide another data set that works ?
Lars Dierickx
2024 年 4 月 18 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!