I have a big one . CSV file (~ 26000 lines). I want to be able to read it in Matlab. Another problem is that it contains a collection of strings separated by commas in one .
I have trouble reading. I tried things like tdfread which do not work here. Any tricks with textscan should i know?
Is there another way?
I'm not sure what your CSV file is generating, but this is your problem.
CSV , . CSV , . ANY , ?
CSV . / . - "()), , .
, CSV.
, xlsread , , - , ? ( :-),
fid = fopen('yourfile.csv');
textscan
t = textscan(fid, '%s', delimiter', sprintf('\n')); t = t{1};
fgetl ( ).
fgetl
- textscan , , , .
, .csv, . Excel , , Excel. CSV DB-. , matLab , - .
? , ? , ?
, , CSV , , Matlab, . , , , , , , . Matlab , .
, , .
Unix? , , , , sed , Matlab. , , .
sed
:
path='C:\folder1\folder2\'; data = 'data.csv'; data = dataset('xlsfile',sprintf('%s\%s', path,data));
, :
[data,path] = uigetfile('C:\folder1\folder2\*.csv'); data = dataset('xlsfile',sprintf('%s\%s', path,data));
. , 1 -
( (1))
Source: https://habr.com/ru/post/1730714/More articles:Subprocess output to DOS script package does not appear in Apache - apacheIs there any harm in using the typical GET action for PUT? (RESTfully speaking) - ruby-on-railsProblems writing to a unix channel through Java - javaJava Java output to script call - javaИсключение NHibernate и SQLite - c#Is there a traffic limit for the Apple Push Notification Service? - push-notificationinterrupt empty string - ruby | fooobar.comsorting by strings by binary strings with arbitrary length - stringWhat cocoa apps use the AquaticPrime licensing system? - licensingСоздать допустимый XML из XSD, загруженного в Runtime (без xsd.exe) - c#All Articles