Created
January 28, 2016 22:48
-
-
Save Raggles/d2d6786c9e73ecd73fa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%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