ASCII multiplication returns array of numbers
Show older comments
Can someone explain why 'abc'.*'xyz' return an array of numbers
Answers (1)
James Tursa
on 15 Apr 2020
0 votes
The characters are converted to double values (ASCII code numbers) and then multiplied. That is the way the * operator works for character inputs.
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!