uigetfile and fileread combined

조회 수: 2 (최근 30일)
polo Mahmoud
polo Mahmoud 2019년 11월 7일
댓글: polo Mahmoud 2019년 11월 7일
Hi i can open my file by use of
S = fileread('coord.txt')
but i want to combine this to my other code where i use
[filename,pathname] = uigetfile({'*.txt'},'Load Coordinates for structure');
so make S still read the file like before with fileread but i want to be able to combine this to a pop up window

채택된 답변

Walter Roberson
Walter Roberson 2019년 11월 7일
fullname = fullfile(pathname, filename);
S = fileread(fullname);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by