MATLAB map and reduce: functional programming
26 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Michael Sohnen
il 14 Mar 2021
Risposto: Bjorn Gustavsson
il 14 Mar 2021
What is the MATLAB equivalent of python's MAP and REDUCE?
0 Commenti
Risposta accettata
Bjorn Gustavsson
il 14 Mar 2021
You could get parts of the way with cellfun and arrayfun, typically in combination with anonymous functions (fcn = @(x) sin(x)). Then there are at least 2 submissions on the file exchange with functional programming tools: functional-programming-constructs and functional-library. Loren also published a series of posts on this: introduction-to-functional-programming-with-anonymous-functions-part-1, should give some good information.
HTH
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Call Python from MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!