reading data from text file
Show older comments
I have a text file that consists of:
[a, b, c]=textread('C:\Users\Srtm\Desktop\new\os.txt','%f%f%f');
where am i doing wrong
1 Comment
Rena Berman
on 24 Jan 2023
(Answers Dev) Restored edit
Accepted Answer
More Answers (1)
Cris LaPierre
on 27 Jun 2022
1 vote
Use readtable (use column headers as variable names) or readmatrix (will need to skip the first row) instead.
Categories
Find more on File Operations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!