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
Find state names that end with the letter A
709 Solvers
Compute a dot product of two vectors x and y
750 Solvers
Set some matrix elements to zero
290 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
Generate a random matrix A of (1,-1)
211 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!