Write a MATLAB program that asks the user to enter a 2 by 3 array (assume that the user's input size is correct) Then wr
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a MATLAB program that asks the user to enter a 2 by 3 array (assume that the user's input size is correct) Then wr
Write a MATLAB program that asks the user to enter a 2 by 3 array (assume that the user's input size is correct) Then write a function that finds the maximum number in each row in the 2D array and returns the values in another array. You are not allowed to use the built-in function max(): function Max = FindMax (A, row size, col size) If the following array was the input: A = [10 20 40; 30 80 90] The output is: Max = [40 90]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!