You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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. (2026). Apply multiple functions in a single function. (https://au.mathworks.com/matlabcentral/fileexchange/33778-apply-multiple-functions-in-a-single-function), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Pack & Unpack variables to & from structures with enhanced functionality
Inspired: Crop video to sub elements
General Information
- Version 1.0.0.0 (3.65 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
