How can i open the attached text file or other formate file given in community in my own matlab

Please guide me.

4 件のコメント

Stephen23
Stephen23 2020 年 8 月 25 日
No file is attached. How to import file data into MATLAB:
M.S. Khan
M.S. Khan 2020 年 8 月 25 日
Stephen, i am asking that for example, some one has given in attached a file. then how will i open it in my workspace to run it.
M.S. Khan
M.S. Khan 2020 年 8 月 25 日
Stephen, thanks for reply, i am asking about any file attached here in the community. then how will i open it in my matlab. For example, attached is the file. i want to open it in my workspace.
If your goal is to read directly from URL, you can also do that:
url='https://www.mathworks.com/matlabcentral/answers/uploaded_files/351236/Xc.txt';
try str=webread(url);catch str=urlread(url);end %#ok<URLRD> urlread as fallback for old releases/GNU Octave

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

 採用された回答

Stephen23
Stephen23 2020 年 8 月 25 日
編集済み: Stephen23 2020 年 8 月 25 日
"How can i open the attached text file..."
Download the file, then run either:
V = dlmread('Xc.txt');
or
V = readmatrix('Xc.txt');
"..or other formate file given in community in my own matlab"
That depends entirely on the file format: if it is a standard file format then you can probably use one of the inbuilt file importing functions:
otherwise you might have to find some third-party function that supports a particular file format, or write your own file importing function based on the specification of that file format.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Downloads についてさらに検索

タグ

質問済み:

2020 年 8 月 25 日

コメント済み:

2020 年 8 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by