GUI Question: How can I import a variable/vector/matrix into a GUI I created?
古いコメントを表示
Hi! For example, I am creating my own GUI and I want to Import a variable or a vector from workspace or file system? How do I go about doing this? Thanks very much!
採用された回答
その他の回答 (2 件)
Matt J
2012 年 9 月 30 日
1 投票
This might be what you want
Also, you can pass MATLAB variables to the GUI as input arguments when it is initially launched:
mygui(A,B,C,...)
The variables A,B,C,... will be passed to your gui's OpeningFcn, assuming you developed the gui using GUIDE, as varargin inputs.
Image Analyst
2012 年 9 月 30 日
1 投票
You can import a file from the file system using uigetfile() to get its filename, then use functions such as dlmread, csvread, textscan, importdata, etc. to read in the contents of the file.
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!