importing data from a text file to matlab

I want to import data from a text file folder(which has several files within it) to matlab workspace. Suppose my one file consist of 3-4 columns and i want to label each column into a separate array. Any suggestions?

 採用された回答

Sean de Wolski
Sean de Wolski 2014 年 12 月 8 日

0 投票

Right click on the file and select "Import Data". Then select the data you want and import it. If you want to automate this, click the down arrow under the import check box and generate a script or a function.

3 件のコメント

Chathu
Chathu 2014 年 12 月 9 日
Thank you very much for your response, Sean. But in that particular file i have 3-4 columns. What i want here is to extract each column,write them to separate arrays and save it in the workspace. Can you kindly give me a hint? Thank you in advance.
Sean de Wolski
Sean de Wolski 2014 年 12 月 9 日
This is exactly what the Import Tool will let you do if you select column vectors.
Chathu
Chathu 2014 年 12 月 9 日
Great!!! Thank you so much Sean.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Import and Export についてさらに検索

質問済み:

2014 年 12 月 8 日

コメント済み:

2014 年 12 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by