Reading csv from the second line and creating output
16 views (last 30 days)
Show older comments
I want from a csv archive to read only one column. The problem is that I want to read this column from the second line and by using these commands:
[d1,tex]= xlsread(filename1);
name=tex(:,4)
it's reading from the first line.
Also, I would like to create a matrix that will inclue two columns that have come from commants (equations etc) in my Matlab code.
0 Comments
Accepted Answer
Star Strider
on 27 Jul 2019
Try this:
name = tex(2:end,4)
‘Also, I would like to create a matrix that will inclue two columns that have come from commants (equations etc) in my Matlab code.’
Please provide details.
15 Comments
Star Strider
on 28 Jul 2019
My pleasure!
If my Answer helped you solve your problem, please Accept it!
More Answers (0)
See Also
Categories
Find more on Debugging and Analysis 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!