Skip to content

Instantly share code, notes, and snippets.

@Raggles
Created January 28, 2016 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raggles/d2d6786c9e73ecd73fa3 to your computer and use it in GitHub Desktop.
Save Raggles/d2d6786c9e73ecd73fa3 to your computer and use it in GitHub Desktop.
%%concap recrod plotter
function plotter (filename)
rec = csvread(filename);
time = 1:length(rec);
time = time.*0.05;
plot(rec(:,3),rec(:,4), ".r",rec(:,5),rec(:,6), ".b")
xlabel("I1/I2");
ylabel("Q1/Q2");
title("Constellation map");
figure;
plot(time,rec(:,1),"r",time,rec(:,2),"b")
xlabel("Time (ms)");
ylabel("DFE1/DFE2");
title("DFE over time");
figure;
d1= sqrt(rec(:,3).^2+rec(:,4).^2);
d2= sqrt(rec(:,5).^2+rec(:,6).^2);
plot(time,d1,".r",time,d1,".b");
xlabel("Time (ms)");
ylabel("Magnitude");
title("sqrt(I^2+Q^2) over time");
%we will disable this one because I don't think it is that useful
%plot3(time,rec(:,3),rec(:,4), ".r",time,rec(:,5),rec(:,6),".b");
endfunction;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment