Difference between character variables where one shows the whole word versus the value of an array?
Show older comments
I'm using a search function (credit: https://www.mathworks.com/matlabcentral/fileexchange/41357-search--web-search-from-the-command-line?focused=3785132&tab=function) that opens up google and searches up whatever word you want.
For some reason, when I try searching using a character variable that shows the whole word (i.e char1 = 'Hello World'), it works fine. When I try searching with a character variable that shows only an array (i.e char2 = 1x20 char), nothing happens.
For context, the char2 is being pulled from the ocr command to identify words in a picture.
I'm not sure what the difference between the way the values are stored and if there's a way to fix this.
Thanks!
1 Comment
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings 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!