• Sábado 18 de Abril de 2026, 14:51

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - patricia888

Páginas: [1]
1
Matlab / Demodulador QPSK
« en: Lunes 9 de Mayo de 2011, 22:15 »
Hola,

Estoy realizando un demodulador de QPSK, tengo un problema al asingar a un bit los dos simbolos correspondientes de la QPSK, para ello obtengo una parte real y una parte imaginaria de la señal y luego realizo el siguiente for:



QPSKRx=QPSKRx(:)

RealQPSKRx=real(QPSKRx)                                                            
ImagQPSKRx=imag(QPSKRx)

indice8=1;
for(indc=1:length(QPSKRx))
    %simbolo 11
    if(RealQPSKRx(indc)>= 0 && ImagQPSKRx(indc)>=0)
        Y(indc)=1;
        Y(indc+1)=1;
    %simbolo 10    
    elseif(RealQPSKRx(indc)>= 0 && ImagQPSKRx(indc)<=0)
        Y(indc)=1;
        Y(indc+1)=0;
    %simbolo 01
    elseif(RealQPSKRx(indc)<= 0 && ImagQPSKRx(indc)>=0)
         Y(indc)=0;
         Y(indc+1)=1;
    %simbolo 00
    else
         Y(indc)=0;
         Y(indc+1)=0;
       
    end
end


lo que yo quiero es que cuando el simbolo tiene una parte imaginaria y una parte real mayor que cero el numero que me salga sea 11 y asi con los consecutivos "elseif" pero no lo consigo,
¿alguien me podria echar una mano?

2
Matlab / Entender funcion
« en: Martes 3 de Mayo de 2011, 14:44 »
Hola! tengo que entender esta funcion para poder pasarla a C++, alguien me podría ayudar a comprenderla??
Gracias, Un Saludo.
Patricia


function [L,S,T,maxes] = find_landmarks(D,SR,N)
% [L,S,T,maxes] = find_landmarks(D,SR,N)
% Make a set of spectral feature pair landmarks from some audio data
% D is an audio waveform at sampling rate SR
% L returns as a set of landmarks, as rows of a 4-column matrix
% {start-time-col start-freq-row end-freq-row delta-time}
% N is the target hashes-per-sec (approximately; default 5)
% S returns the filtered log-magnitude surface
% T returns the decaying threshold surface
% maxes returns a list of the actual time-frequency peaks extracted.
%
% REVISED VERSION FINDS PEAKS INCREMENTALLY IN TIME WITH DECAYING THRESHOLD
%
% 2008-12-13 Dan Ellis dpwe@ee.columbia.edu

if nargin < 2; E = 4; end

if length(E) == 1
W = 4*E;
E = exp(-0.5*[(-W:W)/E].^2);
end

X = locmax(X);
Y = 0*X;
lenx = length(X);
maxi = length(X) + length(E);
spos = 1+round((length(E)-1)/2);
for i = find(X>0)
EE = [zeros(1,i),E];
EE(maxi) = 0;
EE = EE(spos+(1:lenx));
Y = max(Y,X(i)*EE);
end

Páginas: [1]