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
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?
Arwan Khoiruddin
Arwan Khoiruddin 2014-7-18
Yups. But the user may have one or several stock(s) to retrieve.

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by