How can i give inputs as a matrix ?
3 次查看(过去 30 天)
显示 更早的评论
i have a function a(x1,x2,x3 ........ x161) = ..........;
when i give inputs in this function like this a(randn(1,161))
it returns me only one input is given. need 160 more input how can i solve this issue
1 个评论
Stephen23
2018-12-22
"i have a function a(x1,x2,x3 ........ x161)..."
You should really consider redesigning your function so that it just has one array inut, rather than 161 individual input arguments. One array input would be much simpler to work with, be less liable to bugs, and most likely make your code more efficient.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!