特定の文字が含まれる隣の値を抽出する
Ältere Kommentare anzeigen
下記記載の行列Aにおいて、2列目の文字が引上げと書かれている左の値を抽出し行列Bのように出力したいです。色々な関数を使用してみたのですがうまくいきません。これを実現できるコードをご教授頂きたいです。
A=
8.17150500000000,'保持'
8.17150500000000 ,'保持'
8.17150500000000,'保持'
8.17150500000000 ,'保持'
7.90358600000000,'引上げ'
7.90358600000000 ,'引上げ'
7.85893300000000,'引上げ'
7.90358600000000,'引上げ'
B=
7.90358600000000
7.90358600000000
7.85893300000000
7.90358600000000
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu データ型の識別 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!