could you give an example? it's kind of hard to figure out what you're asking for.
sorry, f(i) = 2 if i = even
The problem is asking for the sum of a function from 1 to n, where every odd input outputs 1, and even input outputs 2.
Not sure where the 'vectorization' is coming from for this problem.
Remove the polynomials that have positive real elements of their roots.
630 Solvers
Rotate input square matrix 90 degrees CCW without rot90
381 Solvers
Given a 4x4 matrix, swap the two middle columns
516 Solvers
531 Solvers
5493 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!