MATLAB: Sample singal form a table

bit sample form a table

i've extract a singal form other softwave program and now i want to sample the signal each 2.5 ns form the table above to make a complete bits stream. As you can see, in the table it is only descrip when logic state change (1 to 0 or 0 to 1) . Can matlab do it? Please help me, i'm new to matlab

Best Answer

  • times_to_sample = 0:2.5E-9:100E-9;
    sampled_signal = interp1(TheTable.Time, TheTable.BitValue, time_to_sample, 'previous');