Problem 123. Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next.
Example input:
x = [10 2];
Solution Stats
Problem Comments
-
8 Comments
Although it is fairly easy to guess what you mean, your problem statement is not descriptive enough. Specifically, it is not clear whether the input is a single vector with both the rise and run, or if there should be two inputs. And what should the ordering be?
I'm not able to guess what "horizontal run" and "vertical rise" is. Where does the "next" belong to, to "vertical rise" or to "as a vector"?
a poor description for an uninspiring problem
Please provide more information on this problem. Can't understand. Sorry.
could you give little more explanation about the problem
I agree whith everybody
Test suite contains the solution. Poor.
I have noticed that problem statements from AMITAVA BISWAS are so vague, stupid, meaningless, and unclear. I don't know why he creates problems if he doesn't want to invest some time to come up with something meaningful and clear.
Solution Comments
Show commentsProblem Recent Solvers1728
Suggested Problems
-
Read a column of numbers and interpolate missing data
2340 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2504 Solvers
-
Matrix indexing with two vectors of indices
763 Solvers
-
Getting the indices from a matrix
705 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
953 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!