Questions I need help with please

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Questions I need help with please

Post by answerhappygod »

Questions I need help with please
Questions I Need Help With Please 1
Questions I Need Help With Please 1 (71.53 KiB) Viewed 36 times
MATLAB Grader Mason Wakeling - CONTENTS Close Courses & Content LMS Integration Documentation & Support TVIATLON TOTalve assessment 3 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. MATLAB summative assessment You may assume that each input would have exactly one solution. MATLAB Fundamentals - Math Expression Example 1: MATLAB Fundamentals - Trig functions Input: nums = [2,7,11,15], target = 9 Output: [1,2] Explanation: Because nums (1) + nums (2) == 9, we return [1, 2]. Example 2: Input: nums = [3,2,4], target = 6 Output: [2,3] MATLAB Fundamentals - Variables and Data Types Example 3: Input: nums = [3,3], target = 6 Output: [1,2] MATLAB Fundamentals - Cylinder Volume MATLAB Fundamentals - While loop WARNING MATLAB Fundamentals - Sales Promotions Some of the test cases are large and will timeout the server if you don't write efficient code. For this reason the template disables these tests. To test if your code runs on these cases (needed for full credit) remove the lines if length(nums) > 1000 X MATLAB Fundamentals - Quality control i = 0; j = 0; Intermediate MATLAB - Runge- Kutta method return; end Intermediate MATLAB - Finite Difference Method But don't do this until you are passing the first set of tests!

Function Reset MATLAB Documentation 1 function [i,j] = mySum(nums, target) 2 if length(nums) > 1000 i = 0; j = 0; return; 3 4 5 6 end 7 end 8 Code to call your function ® C Reset 1 nums = [2,7,11,15]; 2 target=9; 3 my Sum(nums, target);

Assessment: Run > Pretest 1 (Pretest) > Pretest 2 (Pretest) > Pretest 3 (Pretest) Test 1 Test 2 Test 3 Test 4 Long test 1 Long test 2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply