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

조회 수: 1(최근 30일)
Please guide me.
  댓글 수: 4
Rik 2020년 8월 25일
If your goal is to read directly from URL, you can also do that:
try str=webread(url);catch str=urlread(url);end %#ok<URLRD> urlread as fallback for old releases/GNU Octave

댓글을 달려면 로그인하십시오.

채택된 답변

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');
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개)


Find more on File Operations in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by