Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to count the number of files in one folder?

1,505 views
Skip to first unread message

Hannu Loimo

unread,
Feb 11, 2010, 8:40:09 AM2/11/10
to

Subject tells it all.

I want to count how many .set files is in certain folder. How can i do it?

Jan Simon

unread,
Feb 11, 2010, 9:07:02 AM2/11/10
to
Dear Hannu!

> I want to count how many .set files is in certain folder. How can i do it?

D = dir([FolderName, '\*.set']);
Num = length(D(not([D.isdir])))

Good luck, Jan

Hannu Loimo

unread,
Feb 11, 2010, 10:09:03 AM2/11/10
to
Thanks Jan:)


"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote in message <hl12u6$smj$1...@fred.mathworks.com>...

Shubhobrata

unread,
May 28, 2015, 5:22:59 AM5/28/15
to
"Hannu Loimo" wrote in message <hl11bp$ft7$1...@fred.mathworks.com>...
>
> Subject tells it all.
>
> I want to count how many .set files is in certain folder. How can i do it?


Thanks.It worked :)
0 new messages