How can i open the attached text file or other formate file given in community in my own matlab
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
M.S. Khan
el 25 de Ag. de 2020
Comentada: M.S. Khan
el 26 de Ag. de 2020
Please guide me.
4 comentarios
Rik
el 25 de Ag. de 2020
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
Respuesta aceptada
Stephen23
el 25 de Ag. de 2020
Editada: Stephen23
el 25 de Ag. de 2020
"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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Export en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!