Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Trying to import data file

1 Ansicht (letzte 30 Tage)
Tommy Pestolesi
Tommy Pestolesi am 3 Dez. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello I am a novice user. I am trying to read in a very large data file. It has 4 rows of headers and under the header are 6 columns of thousands of lines of data. I will need to use that data from specific columns in matrix math operations. I have attached a picture of the data to give an example. I think I am trying to create a matrix with 6 columns so I can pull a column anduse it in mathmatical operations. I have updated this section with the attached file I am trying to read if that is able to help give more insight into the issue. It should be noted that I'm using version 2016b.
  2 Kommentare
Image Analyst
Image Analyst am 3 Dez. 2019
You forgot to attach a sample text file. Did you try importdata()?
Tommy Pestolesi
Tommy Pestolesi am 4 Dez. 2019
I feel so silly, importdata is exactly what I needed thank you!

Antworten (1)

Joshua Taylor
Joshua Taylor am 3 Dez. 2019
Depending on the format of the data (it looks similar to excel) you might be able to use readcell. This will read it into a cell array. If it is excel, there was a matlab function dedicated to reading from it here.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by