Can anyone help me with understanding this code?
1 次查看(过去 30 天)
显示 更早的评论
Hi, I am trying to figure it out what is the line code is doing. Please help me with understanding it
out=arrayfun(@(x,y)s(x:y),ii1(ii),ii2(ii),'un',0)
Thanks,
0 个评论
采纳的回答
Rik
2020-5-26
Did you read the documentation for arrayfun? That seems like a good place to start.
The part with 'un' is a bit more tricky though, so I will just give you a direct answer for that. It is a shorthand for 'UniformOutput'. This syntax is fairly common, but should be avoided in case Mathworks decides to add an option to arrayfun or cellfun that starts with un.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!