ASCII multiplication returns array of numbers

6 vues (au cours des 30 derniers jours)
Carlos Martinez
Carlos Martinez le 15 Avr 2020
Can someone explain why 'abc'.*'xyz' return an array of numbers

Réponses (1)

James Tursa
James Tursa le 15 Avr 2020
The characters are converted to double values (ASCII code numbers) and then multiplied. That is the way the * operator works for character inputs.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by