Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to pass different arrays as independent varargins?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2016-5-17
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!