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.