COUNTNATURALS Count occurences of natural numbers (positive integers)

Examples

N = countNaturals(1:5)
N = countNaturals(-1:5)
N = countNaturals(magic(2))
N = countNaturals(magic(2).^2)

TODO

  • docs

Authors

Mehul Gajwani, Monash University, 2024