Error with phaseNoiseMeasure command

1 回表示 (過去 30 日間)
Subhradeep Pal
Subhradeep Pal 2020 年 12 月 10 日
回答済み: Shiva Kalyan Diwakaruni 2020 年 12 月 16 日
I have a time domain signal whose PSD is required to be calculated. When I am using the new command "phaseNoiseMeasure" in MATLAB R2020b, it is showing an error message related to vertcat. I have attached the screenshot of the error message.
I have attached the code and corresponding MATLAB figure with this post. How to get rid of this error and actually get the PSD?

回答 (1 件)

Shiva Kalyan Diwakaruni
Shiva Kalyan Diwakaruni 2020 年 12 月 16 日
Hi,
the above error is occuring because the values of x and y which is accessed using dataObjs(1).XData and dataObjs(1).YData is passed as a row vector(1*m) but phaseNoiseMeasure function is expecting column vector(m*1)
you can change your code from
x = dataObjs(1).XData;
y = dataObjs(1).YData;
to
x = dataObjs(1).XData';
y = dataObjs(1).YData';
and you can get rid of this error and actually get the PSD.
hope it helps,
thanks

カテゴリ

Help Center および File ExchangeParametric Spectral Estimation についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by