特定の文字が含まれる隣の値を抽出する
Show older comments
下記記載の行列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
Accepted Answer
More Answers (0)
Categories
Find more on データ型の識別 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!