Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
help with creating certain function for setting elements in one matrix to another
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
want to make function that takes in text, and then creates a matrix that sets each element to one of the ascii code elements
for example: [abcdef] would get set to [1 2 3 4 5 6]
and [help] would get set to [8 5 12 16]
pls help
0 comentarios
Respuestas (1)
the cyclist
el 4 de Nov. de 2017
Here's one way:
alphabet = 'abcdefghijklmnopqrstuvwxyz';
[~,vec] = ismember('help',alphabet)
9 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!