Cody

# Problem 123. Tell me the slope

Solution 2170303

Submitted on 22 Mar 2020 by Hamza Maqbool
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = [10 2]; y_correct = 2/10; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = [20 1]; y_correct = 1/20; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x = [100 20]; y_correct = 1/5; assert(isequal(your_fcn_name(x),y_correct))

### Community Treasure Hunt

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

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.59803504,"math_prob":0.9349025,"size":526,"snap":"2020-45-2020-50","text_gpt3_token_len":167,"char_repetition_ratio":0.1532567,"word_repetition_ratio":0.0,"special_character_ratio":0.35171103,"punctuation_ratio":0.12244898,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9637529,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-20T14:47:20Z\",\"WARC-Record-ID\":\"<urn:uuid:c7e45f20-5f8b-4b0f-8476-73eabe19fb96>\",\"Content-Length\":\"79819\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6228d115-8209-45b2-9152-a960975c890a>\",\"WARC-Concurrent-To\":\"<urn:uuid:c9fc7dd5-da02-4324-8a2b-a57332328ce6>\",\"WARC-IP-Address\":\"23.56.12.57\",\"WARC-Target-URI\":\"https://la.mathworks.com/matlabcentral/cody/problems/123-tell-me-the-slope/solutions/2170303\",\"WARC-Payload-Digest\":\"sha1:GFSKH2WIDHCWUEQBPV7VFSTUHNSEYSWF\",\"WARC-Block-Digest\":\"sha1:HCVGB4DFOEDJGP6EQKOS5BGXCJFV2ET6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107872746.20_warc_CC-MAIN-20201020134010-20201020164010-00006.warc.gz\"}"}