Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Urgent: a problem with file names in windows and in linux system

Subject: Urgent: a problem with file names in windows and in linux system

From: imagevision

Date: 14 Sep, 2012 07:08:14

Message: 1 of 1

Dear All,

Please see, the following code works well for windows but has got problem in linux.



 files = ls (foldername);
    
    c = 1;
    for i=1:size (files, 1)
        if (exist(fullfile(dataPath, files(i,:)),'dir') == 7)
            if (files(i,1) ~= '.')
                subjects(c,:) = files(i,:);
                c = c + 1;
            end
        end
    end
--------------------
1) in windows everything is well.

but
2)
in linux subjects is always nothing.

Please suggest something
best regards,
from
Image vision

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us