Problem 54665. Find the slope of a line that passes through two vectors
P.S. This is supposed to be a beginner problem; there is no actual difficulty or challenge 😊
Thanks for contributing a problem, Ashley. I think it's good to have problems that cover a range of difficulty so that players of all levels can engage with Cody. Your problem's description is clear and concise, and it has a decent number of tests: others recommend at least four tests to discourage lookup solutions.
One suggestion is to use the search tool to check whether others have written similar problems. In this case Cody Problem 43546 is similar. I wrote two problems that I later learned repeat existing problems. Now I check and change the idea if I find a similar existing problem.
Solution CommentsShow comments
Problem Recent Solvers42
Find the sum of all the numbers of the input vector
Getting the indices from a vector
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!