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.

 plz give me the program by using Octave 2. Write an
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. (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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!