フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 回表示 (過去 30 日間)
SANKAR JYOTI NATH
SANKAR JYOTI NATH 2016 年 10 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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; ......................................................................................................................

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by