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.
This is single line program if you use built-in function 'interp1'.
useful function => interp1
solution:
https://github.com/AhmedNazir/MatlabCody/blob/master/interpolator.m
A
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
this won't work when the point is not in middle of 2 elements, for example a=3.3 in test 1
308 Solvers
584 Solvers
321 Solvers
260 Solvers
1140 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!