MATLAB map and reduce: functional programming
조회 수: 19 (최근 30일)
이전 댓글 표시
What is the MATLAB equivalent of python's MAP and REDUCE?
댓글 수: 0
채택된 답변
Bjorn Gustavsson
2021년 3월 14일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!