MATLAB Answers

filter data based on row value(text) ?

19 views (last 30 days)
MUKESH KUMAR
MUKESH KUMAR on 3 Jun 2020
Edited: Mohammad Sami on 3 Jun 2020
I had data similar to shown in image1 and want to exteract data for all data for first column for all rows like image2, image3.....so on for all individual routes of column one.
how to filter data based on text values. Sample data is attached in excel file
Here is further followup question after this,
if first column has time varying throughout the day time of 24hr then how can I distribute this data with probability distribution having probality in night is higher during 10PM to 5AM and low in day time.
thanks

  1 Comment

Mohammad Sami
Mohammad Sami on 3 Jun 2020
Matlab supports various string comparison options.
contains Determine if pattern is in strings
matches Determine if pattern matches strings
endsWith Determine if strings end with pattern
startsWith Determine if strings start with pattern

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by