extract numbers from a char type input

1 visualización (últimos 30 días)
Raldi
Raldi el 5 de Mayo de 2012
Hi everyone, my question is about how can i seperate the two numbers given by the user in the form "number1,number2" that are stored as a char type vector. So basicaly i want to seperate it where the comma is and keep the values left and right.
Thanks in advance.

Respuesta aceptada

per isakson
per isakson el 5 de Mayo de 2012
Try
doc strtok
and
doc str2num
  1 comentario
Raldi
Raldi el 5 de Mayo de 2012
thank, i believe this is what i was searching for. Although i did it manualy :P

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by