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