フィルターのクリア

extract from strring row symbol

1 回表示 (過去 30 日間)
roborrr
roborrr 2022 年 2 月 27 日
コメント済み: Voss 2022 年 2 月 27 日
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"

採用された回答

Voss
Voss 2022 年 2 月 27 日
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 件のコメント
roborrr
roborrr 2022 年 2 月 27 日
thank you so much , it was very helpful.
Voss
Voss 2022 年 2 月 27 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by