Info
此问题已关闭。 请重新打开它进行编辑或回答。
Is it possible to set varargin from edit text (GUI)?
1 次查看(过去 30 天)
显示 更早的评论
I made a GUI-based matlab code using GUIDE. I have a function that have a varargin parameter as following:
function stocks = hist_stock_data(start_date, end_date, varargin)
I want to get all the three parameters using GUI input text. Here, varargin is intended for the stocks that will be retrieved from database. Therefore, the number of input should be flexible.
For start_date and end_date, I have done it by the following codes:
start_date = str2num(get(handles.edStartDate,'String')); end_date = str2num(get(handles.edEndDate,'String'));
However, I don't know how to get the varargin (stock data) from edStock.
Thank you for your kind help.
4 个评论
Sara
2014-7-18
So, is your edBox where the user inputs what database to use, e.g. the user could write GOOG in there and your code go grabbing the right stock?
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!