MATLAB Answers

Morse Code Decoder help!

2 views (last 30 days)
dddonwign
dddonwign on 22 Apr 2021
Answered: David Hill on 22 Apr 2021
How do i make it so that MATLAB can read words instead of letter ? Currently i can make it translate a single letter but not more than that. Im still fairly new to Matlab so i dont know much. Please help

Answers (1)

David Hill
David Hill on 22 Apr 2021
Look at what this does.
word='Name';
word=upper(word);
morseWord=morse(word-'@');

Community Treasure Hunt

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

Start Hunting!

Translated by