Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

how to call a txt file from a folder by entering file name in edit box in GUI. the file name is same with the date of store the file

1 view (last 30 days)
function inputdate_Callback(hObject, eventdata, handles) % hObject handle to inputdate (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % hObject handle to edit1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
x = get(handles.inputdate,'String'); %edit1 being Tag of ur edit box if isempty(x) fprintf('Error: Enter avalid date\n'); else file_path = uigetfile('*.txt') data = importdata(file_path); idr=data; Fr=idr(:,1); Hr=idr(:,2); Ar=idr(:,3); Fr=Fr./1000000; ......................................................................................................................

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!