How to automatically input function arguments?
7 次查看(过去 30 天)
显示 更早的评论
I have to ask the user for the values of 'n'. I have two defined variables 'a' and 'b' which are vectors. I have to substitute 'a' and 'b' in the function allcomb() in a manner that 'a' occurs 'n' times followed by 'b'.
For example if n=5 then I need the value of allcomb(a, a, a, a, a, b).
For n=2, allcomb(a, a, b) is required.
How should I write a code which decides the input arguments?
Thank you.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!