how to reduce the length of a string

34 visualizaciones (últimos 30 días)
HARITHA Nambiar
HARITHA Nambiar el 12 de Mzo. de 2018
Respondida: KALYAN ACHARJYA el 12 de Mzo. de 2018
MATlab code for reducing the length of a string
  1 comentario
Birdman
Birdman el 12 de Mzo. de 2018
What do you mean by reducing? What have you tried so far?

Iniciar sesión para comentar.

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 12 de Mzo. de 2018
You can delete the characters from strings-
%Code: delete the last five character from strings, you can choose it another way also.
S='InputString.txt'
S=S(1:end-5)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by