필터 지우기
필터 지우기

How to configure Upload data button in App design

조회 수: 15 (최근 30일)
Pralhad Uttam
Pralhad Uttam 2024년 7월 25일 6:58
답변: Dheeraj 2024년 7월 25일 7:11
Designinh an App i had drag a button i want confure this button to upload raw data

답변 (1개)

Dheeraj
Dheeraj 2024년 7월 25일 7:11
Hi Pralhad Uttam,
You could use create callback functions for the Graphic objects in this case a button to upload raw data in the app.
You could follow the below steps to configure a button in your app to upload raw data,
  1. Create the button in your GUI (drag and drop the button onto the designer workspace)
  2. Right click the button, hover over 'callbacks', select 'AddButtonPushedFcn callback'.
  3. From the code view that will open after adding the callback function, use MATLAB's "uigetfile" function.
% Button pushed function: Button
function ButtonPushed(app, event)
[file,path] = uigetfile('file name you wish to open')
end
You could refer to the below MATLAB's documentation to know more about "uigetfile" function,

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by