You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
cellfunfun is identical to cellfun with one improvement: you don't need to add that annoying (...,'uniformOutput','false') in the end, if it is necessary. In case it is not necessary, the function operates as if 'uniformOutput','true'. You can also explicitly set 'uniformOutput' to the value you wish.
example:
>> a = {'abc','def'};
>> cellfun(@(x)findstr('a',x),a)
Error using cellfun
Non-scalar in Uniform output, at index 2, output 1.
Set 'UniformOutput' to false.
>> cellfunfun(@(x)findstr('a',x),a)
ans =
[1] []
Cite As
Hanan Shteingart (2026). cellfunfun (https://in.mathworks.com/matlabcentral/fileexchange/42180-cellfunfun), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.25 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
