get the numerical values from char
2 ビュー (過去 30 日間)
古いコメントを表示

Hello everyone, Is there a way to get the numerical column which starts with -0.00013494 into an array in matlab?
2 件のコメント
回答 (1 件)
Walter Roberson
2022 年 9 月 21 日
data = cell2mat(textscan(val, '%f', 'HeaderLines' ,17));
The 17 here is my estimate from counting blank lines. I would have been able to provide a more accurate number if you had posted actual text instead of just a picture of text.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!