Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to pass different arrays as independent varargins?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
David Manuel Buitrago Montañez
am 17 Mai 2016
Geschlossen: MATLAB Answer Bot
am 20 Aug. 2021
Hi, I'm trying to pass cell arrays like this:
[y,data]
As varargins in a function, where [y] are a series of [Nx2] matrixes (audio signals generated in matlab), and [data] are series of arrays of six elements each one [1x6].
I tried to pass them as vargargins but it seems that MatLab can't handle with them.
Any Ideas.
1 Kommentar
Antworten (1)
Walter Roberson
am 17 Mai 2016
Enclose each of the lists in {} so that you are passing them as cell arrays.
Alternately, iterate over varargin{} looking for the place where the data type changes.
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!