Azzera filtri
Azzera filtri

extract from strring row symbol

1 visualizzazione (ultimi 30 giorni)
roborrr
roborrr il 27 Feb 2022
Commentato: Voss il 27 Feb 2022
There is a column vector A, which consists of strring rows. Need to extract symbol numbered j from row numbered i , . How do I solve this problem?
example :
A=["abcd"
“efgh”
“ijklm”],
Need to extract symbol numbered 3 from row numbered 3, i.e. symbol "k"

Risposta accettata

Voss
Voss il 27 Feb 2022
A=["abcd";"efgh";"ijklm"]
A = 3×1 string array
"abcd" "efgh" "ijklm"
row_symbol_idx = [3 3];
symbol = extract(A(row_symbol_idx(1)),row_symbol_idx(2))
symbol = "k"
  4 Commenti
roborrr
roborrr il 27 Feb 2022
thank you so much , it was very helpful.
Voss
Voss il 27 Feb 2022
You're welcome!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by