Top "Textscan" questions

Matlab function for reading formatted data.

MATLAB: Using textscan and converting cell array in matrix

I have a large csv file (should be around 1 million lines) with option data with the following structure (content is …

arrays matlab csv cell textscan
Read CSV with semicolon separated data with comma as decimal mark in matlab

My problem is, that I've got CSV-data of the following format: 1,000333e+003;6,620171e+001 1,001297e+003;6,519699e+001 1,002261e+003;6,444984e+001 I want to …

matlab csv textscan
MATLAB: how to read every Nth line of a text file?

I have some data that's formatted as follows: dtau E_av variance N_sims Time 0.001 0.497951 0.000211625 25 Sun Apr 3 18:18:12 2011 dtau E_av …

matlab text file-io textscan
Matlab: How can I read in a string separated with spaces but ignore single spaces (using textscan)?

Hi all and thanks in advance. This is my first post here, please let me know if I should do …

matlab file-io textscan
Reading text file using fscanf in octave / matlab into cell array

I have a comma delimited single text file with strings and integers that I'm trying to import into a cell …

matlab octave textscan
Python equivalent of Matlab textscan

I'm working with transferring some Matlab code to Python. I'm relatively new to Python and am unsure of a Python …

python matlab numpy textscan
importing a CSV file in MATLAB

How can I import a CSV file into MATLAB?. A row in the file i am working with looks like: …

matlab file-io csv import textscan
read complicated .txt file into Matlab

I would like to read a .txt file into Matlab. One of the columns contains both letters and numbers. (So …

string matlab file-io textscan
MATLAB textscan headerlines

When I try to use headerlines with textscan to skip the first line of the text file, all of my …

matlab textscan
Ignore " character when using textscan() in MATLAB

I am using textscan to read data from a file. The data being read is: "ABC",0.156 "DEF",0.125 "GHI",0.101 My code …

matlab file-io literals textscan