Effacer les filtres
Effacer les filtres

Can anyone help me with understanding this code?

1 vue (au cours des 30 derniers jours)
Yanjika O
Yanjika O le 26 Mai 2020
Réponse apportée : Rik le 26 Mai 2020
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,

Réponse acceptée

Rik
Rik le 26 Mai 2020
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.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by