how to get MATLAB to recognize data to table with space as a delimitator but data within ' '

5 ビュー (過去 30 日間)
Elysia
Elysia 2022 年 12 月 1 日
回答済み: Avinash 2022 年 12 月 9 日
I have a text file with data for examples like: 1 'dogs' 15 33 1551 '210 12:00'
Using the import button on MATLAB I can get the data to load into a table like I was with the deliminator being space, however when it comes to data points that are enlosed in ' ' such as '210 12:00' , it splits these two into two different variables but I want to keep it together. How would i go about importing the data and having matlab ignore the white space between things enclosed in ' ' ?

回答 (1 件)

Avinash
Avinash 2022 年 12 月 9 日
Hi Elysia,
You can refer to the following link to understand how to import data from a specific range :
Also refer to the following link to know about detectImportOptions function:
Thanks 
Avinash

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by