Update
This commit is contained in:
@@ -364,6 +364,34 @@ classdef Signal
|
||||
|
||||
end
|
||||
|
||||
function eye(obj,fsym)
|
||||
|
||||
disp('h');
|
||||
|
||||
fsig = obj.fs;
|
||||
q = fsig/fsym;
|
||||
|
||||
if q > 10
|
||||
sig = abs(obj.signal).^2;
|
||||
else
|
||||
sig = abs(obj.resample("fs_in",fsig,"fs_out",fsym*10).signal);
|
||||
q = 10;
|
||||
end
|
||||
|
||||
figure(12)
|
||||
clf
|
||||
cursor = 200*q;
|
||||
|
||||
for s = 1:700
|
||||
plot(sig(cursor-q:cursor+q),'Color','black','LineWidth',0.1,'LineStyle','-');
|
||||
hold on
|
||||
cursor=cursor+q;
|
||||
s=s+1;
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user