Octave/Matlab code

Thread Starter

ChipCircuit

Joined May 1, 2023
56
How to write a Matlab thresholding analysis code for the following data?

Code:
0.000000000000000e+00    1.657717e+00
7.928571428799422e-07    1.657515e+00
1.585714285759884e-06    1.657257e+00
2.378571428639827e-06    1.656944e+00
3.171428571519769e-06    1.656576e+00
3.964285714399711e-06    1.656152e+00
4.757142857279654e-06    1.655673e+00
5.550000000159594e-06    1.655139e+00
 
Last edited:

WBahn

Joined Mar 31, 2012
29,164
Look at the error message your are getting. It is saying that the index that is being used for the edgetimes array is -100, which is not a legal array index.

You have the following in your code:

edgetimes(end-100:end)

What happens if end is zero?

Print out the size of your edgetimes array and see how big it actually is.
 
Top