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 my first solving problem
First find the position then finding the gap length between arrays.
tricky
kind of pointless, since the function already exists
u cannot use 'mean',if not use 3.5,for instance 3.2 3.3
u should use interp1
my answer https://blog.csdn.net/qq_44846756/article/details/116567963
@arsenic, your comment on the main post is deleted because it revealed the answer. It is not the best practice to do so.
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 arrays, find the maximum overlap
607 Solvers
Project Euler: Problem 7, Nth prime
786 Solvers
408 Solvers
Create matrix of replicated elements
335 Solvers
536 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!