puntero_vc3.asv

来自「matlab在通信原理中的应用」· ASV 代码 · 共 125 行

ASV
125
字号
function [Point]=Puntero_VC3(ent)

%==============================================
% Puntero= Esta funcion genra uan matriz con el valor del puntero. El
%                tamano de dicha matriz posee el mismo numero de filas de la senal
%                transmitida.
%==============================================
%
%	AUTORES : Z. AGUI%O & D. STECKLER
%                       Universidad de Carabobo
%                       Valencia edo. Carabobo, VENEZUELA
%
%	FECHA     : Diciembre 2003
%	VERSION : 1.0
%
%==============================================
%	Realizado bajo MATLAB 6.5 Release 13/ Diciemdre 2003 (DZ)
%==============================================
%
i=1;band=0;
while i<=50
    
        
    if isempty(find_system(gcs,'Name',['Mapea (Ds1 a C11) Byte_Sincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end    
       
    if isempty(find_system(gcs,'Name',['Mapea (Ds1 a C11) Bits_Sincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end    
    
    if isempty(find_system(gcs,'Name',['Mapea (Ds1 a C11) Asincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end
    
    if isempty(find_system(gcs,'Name',['Mapea (Ds1 a C11) Byte_Sincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end       
    
    if isempty(find_system(gcs,'Name',['Mapea (CEPT1 a C12) Byte_Sincrono_30_CAS',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end     
    
    if isempty(find_system(gcs,'Name',['Mapea (CEPT1 a C12) Byte_Sincrono_31CCS',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end 
    
    
    if isempty(find_system(gcs,'Name',['Mapea (CEPT1 a C12) Bits_Sincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end
    
    
    if isempty(find_system(gcs,'Name',['Mapea (CEPT1 a C12) Bits_Sincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end   
    
    
    if isempty(find_system(gcs,'Name',['Mapea (DS2 a C2) Asincrono',int2str(i)]))==1
        band=1;
    else
        band=2;
        break
    end
       
    i=i+1;
    
end


%
%
%Obtencion de Parameros del Bloque
j=1;

    while j<=50
        if isempty(find_system(gcs,'Name','(VC3_a_AU3)'))==1
            if isempty(find_system(gcs,'Name',['(VC3_a_AU3)',int2str(j)]))==0
                BlkPunt=([gcs,'/','(VC3_a_AU3)',int2str(j)]);
                numtramas=str2num(get_param(BlkPunt,'ntram'));
                break
            end
        else
            BlkPunt=([gcs,'/','(VC3_a_AU3)']);
            numtramas=str2num(get_param(BlkPunt,'ntram'));
            break
        end
        j=j+1;
    end
%
if (band==1)
    Point=zeros((numtramas*9+18),10);
elseif (band==2)
    Point=zeros((numtramas*9+27),10);
       
end
%
%==============================================
%
Point(1,:)=ent(1,1:10);
%[EOF] Puntero.m

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?