how to get a part of a number

Risposte (1)

x = 1234567891011112;
x_str = num2str(x)
x_str = '1234567891011112'
x_str = x_str([5 6])
x_str = '56'
str2double(x_str)
ans = 56

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Prodotti

Release

R2022b

Tag

Richiesto:

il 8 Ott 2022

Risposto:

il 8 Ott 2022

Community Treasure Hunt

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

Start Hunting!

Translated by