Question: plz give me the program by using Octave 2. Write an Octave function, lab02 02 (save to lab02 02.m file) to perform the following operation.
2. Write an Octave function, lab02 02 (save to "lab02 02.m" file) to perform the following operation. (A,B are unknown) (a) Three input Arguments MI: AxB matrix M2: AxB matrix target: integer variable (b) Three output Arguments M3: CxD matrix M4: ExF matrix Result: integer variable (C,D are unknown) (E,F are unknown) (c) Insert the row of MI (or M2) into M3 if the whole row is the same. (d) You should ignore the operation (c) if the column size does not match (e) Insert the column of Ml (or M2) into M4 if the whole column is the same. (1) You should ignore the operation (e) if the row size does not match (g) Count how many clements in M3 and M4 are equal to target, save the count into Result. For example, if a matrix A=[12: 3 4] and B =[12:36) are defined as follows, >> A [12:34] A= 1 2 >> B = [1 2:36] B 1 2 36 Then if the function "lab02_02" is called, then the returned results should be shown as follows, >> M, N, a) -labo2 02(A, B, 1) M
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
