You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end) find the a(n), a(n+1) that flank it. Now interpolate the value, vb, such that it is proportionally between b(n) and b(n+1).
va can land exactly on a value of a.
WTF!
I know the function interp!! but I thougth I must program it... :-(
That's true, the instructions here do indicate that you're supposed to program it from scratch (e.g. find a(n) & a(n+1)).
For convenience, it would be useful if the code input variables were related to the variables listed in the solution window. We are given a, b, alpha, and beta in the Test Suite; the function that we are to type involves vb, va, a, and b. Sure, we can update it, but it just seems careless.
I couldn't remember interp1 but I formed a very silly code to do the same
Absolutely for the tests...
For convenience, it would be useful if the code input variables were related to the variables listed in the solution window. We are given a, b, alpha, and beta in the Test Suite; the function that we are to type involves vb, va, a, and b. Sure, we can update it, but it just seems careless.
good
good
Find relatively common elements in matrix rows
630 Solvers
135 Solvers
Given a window, how many subsets of a vector sum positive
664 Solvers
289 Solvers
247 Solvers