Given a vector v and a element e, return the number of occurrences of e in v.
Note: NaNs are equal and there may be no occurrences of e in v
v = 1:10
e = 2
output = 1
Most nonzero elements in row
Encode Roman Numerals
Project Euler: Problem 2, Sum of even Fibonacci
Project Euler: Problem 6, Natural numbers, squares and sums.
Find nth maximum
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
Parse me a Lisp
Set a Soroban Abacus
Determine if a Given Number is a Triangle Number
Project Euler: Problem 16, Sums of Digits of Powers of Two
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office