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
Given two strings, find the maximum overlap
469 Solvers
315 Solvers
292 Solvers
middleAsColumn: Return all but first and last element as a column vector
394 Solvers
Find nearest prime number less than input number
274 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!