how to create matrix of string and use it in mathematic operation?
Show older comments
example
a=[1;0;1;1;0]
b=[ben;james;mike;ralph;will]
c=a.*b
c=[ben;mike;ralph]
Accepted Answer
More Answers (1)
Speaking of mathematical operations with strings, ever wonder what you get when you cross a cat with an owl?
>> cross('cat','owl')
ans =
-3328 2184 1014
1 Comment
Categories
Find more on Matrices and Arrays 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!