Can anyone help me with understanding this code?

1 回表示 (過去 30 日間)
Yanjika O
Yanjika O 2020 年 5 月 26 日
回答済み: Rik 2020 年 5 月 26 日
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,

採用された回答

Rik
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 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by