How i can reading character letter by letter
Mostra commenti meno recenti
i have this variable x='123.56.128.117' as a char and i want to save each part that divided by '.' in a different variable. the problem is the size of each part is not fixed that why i face a problem. could you help me pls is there a function that can read the character and when it find '.' save or return size
Risposta accettata
Più risposte (2)
Shruti Sapre
il 20 Nov 2015
1 voto
Hi Gaseb,
Here are two functions that may help achieve the required result:
1. Using "strsplit":
2. Using "strtok"
Hope this helps!
-Shruti
Gaseb Alotibi
il 21 Nov 2015
0 voti
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!