フィルターのクリア

Seperate string and number

1 回表示 (過去 30 日間)
garima sharma
garima sharma 2022 年 6 月 3 日
回答済み: Stephen23 2022 年 6 月 3 日
I am reading data through serial port with a format below (char). ADC1: 123.7834 1.0139 How to separate the data? I want 123.7839 in one coloum and 1.0139 in other coloum. All are separated by space.

採用された回答

Stephen23
Stephen23 2022 年 6 月 3 日
T = 'ADC1: 123.7834 1.0139';
V = sscanf(T,'ADC1:%f%f',[2,Inf]).'
V = 1×2
123.7834 1.0139

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by