Question
Write an Octave function (matrix_check.m), perform the following operation: (a) Three input Arguments M1: AxB matrix (A,B are unknown) M2: AxB matrix target: integer variable
Write an Octave function (matrix_check.m), perform the following operation:
(a) Three input Arguments
M1: AxB matrix (A,B are unknown)
M2: AxB matrix
target: integer variable
------------------------------------------------------------
(b) Three output Arguments
M3: CxD matrix (C,D are unknown)
M4: ExF matrix (E,F are unknown)
Result: integer variable
------------------------------------------------------------
(c) Insert the row of M1 (or M2) into M3 is the whole row are the same.
(d) You should ignore the operation (c) if the column size does not match.
(e) Insert to column of M1 (or M2) into M4 is the whole column are the same.
(f) You should ignore the operation (e) if the row size does not match.
(g) Count how many elements in M3 and M4 are equal to target, save the count into Result.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started