Borrar filtros
Borrar filtros

How to replace a number/vector by string?

1 visualización (últimos 30 días)
googo
googo el 25 de Mzo. de 2013
for example: a=[1 1 2000] ---> 1/1/2000
I'm only allowed using num2str but I don't understand how to use it.
thank's..

Respuestas (2)

googo
googo el 25 de Mzo. de 2013
thanks... how do I use the switch and case if I want to sort number of situations if days < 10 of month < 10 etc...
switch month case <10
?
  1 comentario
Jan
Jan el 25 de Mzo. de 2013
This is a new question. Please do not post it as an answer to another question.
If your original question is solved, accept the corresponding answer. Thanks.

Iniciar sesión para comentar.


Jan
Jan el 25 de Mzo. de 2013
a = [1 1 2000]
sprintf('%d/%d/%d', a)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by