how to interrupt the exececution?

조회 수: 1 (최근 30일)
Jmentday
Jmentday 2013년 3월 11일
clear;
close;
uicontrol('Style', 'pushbutton', 'String', 'Browse','Position', [20 20 50 20],...
'Callback', '[filename,pathname] = uigetfile');
imagefiles = dir(pathname);
% Number of files found
nfiles = length(imagefiles);
Hi. I want to create a Browse button, point to the folder where my files (images)
are, get the folder path and use it for getting the number of he files;
but the program is running up to the end without 'pathname' set.
thanks

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 11일

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by