Why does this error occur? Error using cwt>parseinputs (line 510) Invalid number of scalar input arguments. Error in cwt (line 297) fbcell = parseinputs(Norig,TTable,varar
24 ビュー (過去 30 日間)
古いコメントを表示
function [f_low, f_high, dominant_freq] = autoIdentifyBandwidth(time, dispDataDetrend, sampFreq)
min_scale = 2;
max_scale = min(100, floor(length(dispDataDetrend)/2));
num_scales = 500;
scales = logspace(log10(min_scale), log10(max_scale), num_scales);
[cwt_coeffs, f] = cwt(dispDataDetrend, scales, ...
'Wavelet', 'bump', ...
'SamplingFrequency', sampFreq);
...
0 件のコメント
回答 (1 件)
Chuguang Pan
2025 年 8 月 21 日 7:31
編集済み: Chuguang Pan
2025 年 8 月 21 日 7:32
You do not need to pass scales argument explicitly. The scales argument is excluded of cwt function's signature. The minimum and maximum scales are determined automatically based on the energy spread of the wavelet in frequency and time as illustrated in the documentation of cwt.
参考
カテゴリ
Help Center および File Exchange で Continuous Wavelet Transforms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!