Tell me the slope - MATLAB Cody - MATLAB Central

Problem 123. Tell me the slope

Difficulty:Rate

Tell me the slope, given a vector with horizontal run first and vertical rise next.

Example input:

 x = [10 2];

Solution Stats

68.78% Correct | 31.22% Incorrect
Last Solution submitted on Mar 26, 2025

Problem Comments

Solution Comments

Show comments
Who Deserves Your Praise? Discover the New Contribution Widget!
...
We are excited to announce another update to our Discussions area: the...

Problem Recent Solvers1649

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page