I need to call the index of a matrix created using the linspace command, and based on some data taken from an oscilloscope. Because of this, the data entered is double. However, I cannot name:
Time[V0Found]
where V0Found is something like 5.2, however, index 5 is pretty close, so I need to drop the decimal number. I used this equation to remove the decimal:
V0FoundDec = V0Found - mod(V0Found,1)
Time[V0FoundDec]
However, even though it reduces the decimal, the octave still complains about it.
So what can I do to cast it to int?
source
share