Apply multiple functions in a single function.
This function can be very handy. Consider a case where you wish to analyze data, with different functions. In order to do so, you must write many code lines where you apply
all the functions to the data. And this process tends to repeat itself for several data elements, and with varying functions. Now you can apply any function of your choice
(both Matlab and user custom) to any number of inputs with a single line command [out1,out2,out3...]=funXapply(in1,in2,in3...,{'func1','func2',...});
As an author I shouldn't say this, but this is awesome! I intend to use it all over my code from now on.
Cite As
Nikolay S. (2024). Apply multiple functions in a single function. (https://www.mathworks.com/matlabcentral/fileexchange/33778-apply-multiple-functions-in-a-single-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Pack & Unpack variables to & from structures with enhanced functionality
Inspired: Crop video to sub elements
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |