How to make a morse code encoder using switch case?

2 visualizaciones (últimos 30 días)
Ryan Doherty
Ryan Doherty el 5 de Dic. de 2017
Respondida: Walter Roberson el 5 de Dic. de 2017
I am trying to make a morse code encoder for a school project. I have all of my desired variables accounted for their respective morse code equivalents, but I cannot get the function to read more than one variable without it displaying a "invalid input argument". I also need it to stop once there are no more elements to read from. I have been using switch case for this encoder function. Any suggestions as to how I should approach this problem?
  1 comentario
John D'Errico
John D'Errico el 5 de Dic. de 2017
I think you need to learn to use vectors and arrays.
Don't write a function that requires you to enter many arguments, when a single vector will suffice.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Dic. de 2017

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by