bug in coherence phase angle

tried wcoherence(x,y,days(1))
got
Dot indexing is not supported for variables of this type.
Error in angle (line 9)
th = angle( h.U + i * h.V );
Error in wcoherence>plotcoherenceperiod (line 627)
theta = angle(wcs);
Error in wcoherence (line 249)
plotcoherenceperiod(wtc,crossCFS,dtFunc(f),t,dtFunc(coitmp),...

1 件のコメント

Mathieu NOE
Mathieu NOE 2024 年 5 月 15 日
have you checked your input arguments (x,y,days(1)) : size, type ?
Input Arguments
x Input signal
vector of real values
Input signal, specified as a vector of real values. x must be a 1-D, real-valued signal. The two input signals, x and y, must be the same length and must have at least four samples.
y Input signal
vector of real values
Input signal, specified as vector of real values. y must be a 1-D, real-valued signal. The two input signals, x and y, must be the same length and must have at least four samples.
ts Sampling interval
duration with positive scalar input
Sampling interval, also known as the sampling period, specified as a duration with positive scalar input. Valid durations are years, days, hours, seconds, and minutes. You can also use the duration function to specify ts. You cannot use calendar durations (caldays, calweeks, calmonths, calquarters, or calyears).
You cannot specify both a sampling frequency fs and a sampling period ts.
fs Sampling frequency
positive scalar | []
Sampling frequency, specified as a positive scalar.
If you specify fs as empty, wcoherence uses normalized frequency in cycles/sample. The Nyquist frequency is ½.
You cannot specify both a sampling frequency fs and a sampling period ts.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMeasurements and Spatial Audio についてさらに検索

質問済み:

2024 年 5 月 15 日

コメント済み:

2024 年 5 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by