How can I index a duration variable
Show older comments
Hi, my problem is about indexing. I've got a variable of duration Time_AIS1(has all the times from messages from AIS1). Then I got Time_msg_match(it is a char that has all the line positions that I want from Time_AIS1).

As you can see each line gives a number from where I have to get the number in Time_AIS1. How can I use Time_msg_match to index andd get the information from Time_AIS1.
I've used str2double but I get all the values NaN and I know why I saw it in a post but how could I do it because if I want to use it as an index is has to be in numeric type
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Conversion 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!