get the value of a signal at spesific time

i have a signal represented by two vectors, time data, and y data. for example
t=[0 2 2 3 3 5 5 6] y=[0 0 1 1 2 2 0 0]
that means, the value of the signal from 0 to 2s is 0, and from 2 to 3s is 1,....
is there any command to return me the value of the signal at any specific time e.g y(1.5s)?
thanks

More Answers (0)

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!