- Create the button in your GUI (drag and drop the button onto the designer workspace)
- Right click the button, hover over 'callbacks', select 'AddButtonPushedFcn callback'.
- From the code view that will open after adding the callback function, use MATLAB's "uigetfile" function.
How to configure Upload data button in App design
2 ビュー (過去 30 日間)
古いコメントを表示
Designinh an App i had drag a button i want confure this button to upload raw data
0 件のコメント
回答 (1 件)
Dheeraj
2024 年 7 月 25 日
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,
% 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,
0 件のコメント
参考
カテゴリ
Help Center および File 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!