Define variable inputs for function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
could you please help me with the next problem.
I'm trying to merge N financial time series objects by
function newfts = merge(fts1, fts2, ..., ftsx).
How may I define a variable inputs for that? Because, when I have 2 time seriesobjects it becomes:
newfts = merge(fts1, fts2);
When I have 3:
newfts = merge(fts1, fts2, fts3);
How to avoid of examination of all posible options?
0 Commenti
Risposta accettata
Più risposte (1)
Azzi Abdelmalek
il 26 Feb 2013
you can use a cell array
v={fts1,fts2,...,ftsn}
and use
function newfts = merge(v)
Vedere anche
Categorie
Scopri di più su Other Formats in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!