Error in readInput - unrecognized function or variable 'swallow_csv'

1 visualización (últimos 30 días)
Merve Can
Merve Can el 6 de Mayo de 2021
Respondida: Asvin Kumar el 12 de Mayo de 2021
Hi everyone,
I am trying to read a big CSV file (7.5 GB) and extract data from it into my workspace. I am using the following code:
path = '/Users/mervexxx/Desktop/Kxxxx/SimulationAnalysis/';
element = 'Reference_case.csv';
filename = [path,element];
[numbers,txt] = readInput(filename);
The csv is in the same folder as the m.-file and it works on a windows pc. However, on my mac I am getting the following error:
Unrecognized function or variable 'swallow_csv'.
Error in readInput (line 6)
[numbers, txt] = swallow_csv(filename, quote, sep, escape);
Error in SimulationAnalysis (line 56)
[numbers,txt] = readInput(filename);
Can you help me with this? I have 16GB RAM so that shouldn't be a problem.
Thanks!!

Respuestas (1)

Asvin Kumar
Asvin Kumar el 12 de Mayo de 2021
The swallow_csv mex which was generated for windows will not work for macOS. You will have to regenerate the mex file for macOS. Here are some examples from the mex doc page that should help you get started: https://www.mathworks.com/help/matlab/ref/mex.html#btw17rw-5

Categorías

Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by