MATLAB Answers

Info

This question is closed. Reopen it to edit or answer.

Is it possible to set varargin from edit text (GUI)?

1 view (last 30 days)
Arwan Khoiruddin
Arwan Khoiruddin on 18 Jul 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
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 Comments
Arwan Khoiruddin
Arwan Khoiruddin on 18 Jul 2014
Yups. But the user may have one or several stock(s) to retrieve.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!