Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
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; ......................................................................................................................

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by