Clear Filters
Clear Filters

How to create a 'Next button' to show o/p of each file one by one

1 view (last 30 days)
filepath='C:\Users\Parag\Desktop\12-08-15';
FileName={};
dirListing = dir([filepath '/*.txt*']);
for Index = 1:length(dirListing)
baseFileName = dirListing(Index).name;
FileName=[FileName,baseFileName]
end
file =importdata(FileName);
Fr=file(:,1);
Hr=file(:,2);
Ar=file(:,3);
Fr=Fr./1000000;
.........................
  1 Comment
Jan
Jan on 13 May 2017
Start with replacing the failing concatenation of file names by:
dirListing = dir(fullfile(filepath, '*.txt*'));
FileName = fullfil(filepath, {dirListing.name});
Then explain where the "Next" button should appear and what "show o/p of each file one by one" exactly means.

Sign in to comment.

Answers (0)

Categories

Find more on Manage Products in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!