的结果为:

if source_data(1,index:index+3)==[0,0,0,0];
    if mod(index,2)==0 %判断位置,确定V码的极性
        v=6;
    else
        v=-6;
    end
    source_data(1,index+3)=v; 
    index=index+4;
else
    index=index+1;
end

end data1 = source_data;%确定V码后数据

task 对信号源source_data每连续四位判断其值是否为0000若是则令其第四位为V码并且相邻V码极性相反V码用6表示。 if source_data1indexindex+3== ; v= ; V码极性交替出现 source_data1indexindex+3= ; V码用6表示极性用正负表示 end index

原文地址: https://www.cveoy.top/t/topic/fRFX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录