MG 13 (write a function that uses built-in functions, find and isempty) My Write a function that uses built-in functions find & isempty. Background: When finding array elements that meet a condition, one can find the values in the array OR find the locations in the array. To review this see MathWorks Help webpage on (find array elements that meet a condition) write a function named find Vals_Indx with assigned inputs A and VALUE where A is a Matrix and VALUE is a scalar (both of these inputs are data type double). The function will provide three outputs (in order left-to-right) 1. VALS is a vector that will have all values in the matrix that meet the condition >= VALUE 2. INXS is a vector that will have all locations (Le, indices) that meet this same condition 3. OK is a logical. OK should be true whenever the returned vectors are NOT empty and false when the returned vectors are empty (results of isempty built-in (result of relational operation) (result of find built-in function for this same condition) function) Function A Save C Reset I MATLAB Documentation

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
My S
MG 13 (write a function that uses built-in functions, find and isempty)
Write a function that uses built-in functions find & isempty
Background: When finding array elements that meet a condition, one can find the values in the array OR find the locations in the array. To review this see MathWorks Help
webpage on (find array elements that meet a condition)
write a function named find Vals Indx with assigned inputs A and VALUE where A is a Matrix and VALUE is a scalar (both of these inputs are data type double). The function
(result of relational operation)
1. VALS is a vector that will have all values in the matrix that meet the condition >= VALUE
2. INXS is a vector that will have all locations (i.e, indices) that meet this same condition
3. OK is a logical, OK should be true whenever the returned vectors are NOT empty and false when the returned vectors are empty (results of isempty built-in
function)
will provide three outputs (in order left-to-right).
(result of find built-in function for this same condition)
C Reset
O MATLAB Documentation
A Save
Function O
1Xremember to start with the function prototype
C Reset
Code to call your function o
1 A-[):VALUE-0;
2(VALS, INXS,OK]-find Vals Indx (A,VALUE);
DELL
23 24
her
28
291
30
20 Sers COLEGE RULED SUBJECT
mens
7-800-STAPLES
25 26 27
HESTOUIT
Transcribed Image Text:My S MG 13 (write a function that uses built-in functions, find and isempty) Write a function that uses built-in functions find & isempty Background: When finding array elements that meet a condition, one can find the values in the array OR find the locations in the array. To review this see MathWorks Help webpage on (find array elements that meet a condition) write a function named find Vals Indx with assigned inputs A and VALUE where A is a Matrix and VALUE is a scalar (both of these inputs are data type double). The function (result of relational operation) 1. VALS is a vector that will have all values in the matrix that meet the condition >= VALUE 2. INXS is a vector that will have all locations (i.e, indices) that meet this same condition 3. OK is a logical, OK should be true whenever the returned vectors are NOT empty and false when the returned vectors are empty (results of isempty built-in function) will provide three outputs (in order left-to-right). (result of find built-in function for this same condition) C Reset O MATLAB Documentation A Save Function O 1Xremember to start with the function prototype C Reset Code to call your function o 1 A-[):VALUE-0; 2(VALS, INXS,OK]-find Vals Indx (A,VALUE); DELL 23 24 her 28 291 30 20 Sers COLEGE RULED SUBJECT mens 7-800-STAPLES 25 26 27 HESTOUIT
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY