Is it possible to compare 2 strings only some of the same alphabet not the whole?
Show older comments
If I have 2 variables such as a = ' term'; and b ='computer'; and ter is the same.
Is it possible to compare and turn the true ? I want to compare like query data with 'LIKE' command.
Thank you. Sorry for not good in English.
3 Comments
Azzi Abdelmalek
on 7 Jan 2015
The question is not clear
Image Analyst
on 7 Jan 2015
It's not just ter that is a substring that is present, there are lots of substrings present. Do you also want it to return starting locations of all places where t, e, r, and te occur?
Ara
on 8 Jan 2015
Accepted Answer
More Answers (0)
Categories
Find more on File Operations 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!