MATLAB Answers

William

display .csv filenames in directory in string format

Asked by William
on 16 Jan 2013

Greetings,

I am trying to list all the .csv files in a folder. So fare I am getting a list of all the possible files in a struct but no list of files can someone look at this and tell me what I am doing wrong?

Chicklet_File_list = what(fullfile( 'C:\Documents\MATLAB/*.csv'))

It returns this:

Chicklet_File_list = 
0x1 struct array with fields:
    path
    m
    mat
    mex
    mdl
    slx
    p
    classes
    packages

Not exactly what I need but this is directly from the matworks help files

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst
on 16 Jan 2013

This is well covered in the FAQ

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today