SignalUtils.Demultiplex Method

void Demultiplex(TVec Src, TVec Dst, Int32 ChannelCount, Int32 ChannelNr)

Demultiplex a channel.

#NameTypeDescription
1SrcTVecsource TVec
2DstTVecsource TVec
3ChannelCountInt32
4ChannelNrInt32

Result: stored in self (calling object)

Remarks:

Dempultiplex ChannelNr from Src to Dst, if number of channels is ChannelCount. ChannelNr is zero based.

Examples
using Dew.Math;
using Dew.Math.Editors;
using Dew.Math.Units;
using Dew.Signal;
using Dew.Signal.Units;
using Dew.Math.Tee;
using Dew.Signal.Tee;

    private void button1_Click(object sender, EventArgs e)
{
    Vector b = new Vector(0);
    Vector c = new Vector(0);

    Vector h = MtxExpr.Ramp(6, TMtxFloatPrecision.mvDouble,0,1);     // h = [0 1 2 3 4 5]
    SignalUtils.Multiplex(h,b,3,2);  //  b = [0 0 0 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5]
    SignalUtils.Demultiplex(b,c,3,2); // c = [0 1 2 3 4 5]
    MtxVecTee.DrawIt(c,"",false);
}
See Also: SignalUtils.Multiplex