Rank: 435 based on 277 downloads (last 30 days) and 1 file submitted
photo

Ashish Sadanandan

E-mail
Lat/Long
40.054752, -105.20628

Personal Profile:

 

Watch this Author's files

 

Files Posted by Ashish Sadanandan
Updated   File Tags Downloads
(last 30 days)
Comments Rating
18 Aug 2011 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan csv, csvread, read csv 277 30
  • 4.88889
4.9 | 19 ratings
Comments and Ratings by Ashish Sadanandan View all
Updated File Comments Rating
16 Jul 2014 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan

@Fan
Try adding a newline to the end of the file

25 May 2012 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan

Hi Sayanta,
Call the function as follows:

[C1 C2 C3 C4 C5] = csvimport( 'path\to\file.csv', 'columns', [1:5], 'noHeader', true, 'delimiter', ';' )

28 Oct 2009 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan

Maney,
Try running 'which -all isscalar' at the command line, if MATLAB doesn't find any function by that name then you're either using an old version which doesn't have this function or you have problems with the MATLAB search path. Let's assume it's the former since you'd probably be having other errors too if the cause were to be the latter.

ISSCALAR simply checks whether the operand is a 1x1 matrix. You can replace isscalar(x) with (numel(x) == 1) OR (prod(size(x)) == 1)

HTH,
Ashish

27 Aug 2009 GridBagLayout A MATLAB class which controls layout and resize of a figure/uipanel/uicontainer. Author: Jason

Comments and Ratings on Ashish Sadanandan's Files View all
Updated File Comment by Comments Rating
28 Sep 2014 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan stijn

16 Sep 2014 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan Oscar

31 Jul 2014 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan azizullah khan

sir, if csvexport is kindly share it with me..i am facing a problem with csvwirte i.e Error using dlmwrite (line 112)
The input cell array cannot be converted to a matrix.

31 Jul 2014 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan Adam Li

Great code!

Only issue I really don't understand is why I have to save the file as a Windows CSV file in order for it to work. My code didn't work when the files were saved as only CSV; the column vectors came back empty. Do you think you would be able to fix this problem?

Thanks!

16 Jul 2014 CSVIMPORT CSVIMPORT reads the specified CSV file and stores the contents in a cell array or matrix. Author: Ashish Sadanandan Ashish Sadanandan

@Fan
Try adding a newline to the end of the file

Contact us