what function is used to make this condition??

if there are number 386504398760, we want to read just digit number 5, so we will result 0, or we read just number 2 and 3, so we result 86.. what function is used to make this condition??

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Dic. de 2012
a=386504398760
b=num2str(a)
out=str2num(b(2:3))
Image Analyst
Image Analyst el 1 de Dic. de 2012
Try this:
a=386504398760
string_a = num2str(a)
digitNumber5 = string_a(5)
digitNumbers23 = string_a(2:3)

La pregunta está cerrada.

Productos

Preguntada:

el 1 de Dic. de 2012

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by