Given a function past_records() that will report blood sugar level of two twin brothers some random number of days ago. For example, one call to past_records() may give [77 78]. Another call to past_records() may give [60 48]. Your crystal_ball should create a function second(first) that will predict blood sugar of second brother from blood sugar level of first brother, (within +/-1).
Hint: assume a crystal_ball exists here.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers39
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15783 Solvers
-
First non-zero element in each column
942 Solvers
-
Back to basics 17 - white space
280 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
450 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
103 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!