Question: Make a function M-file, name it as myCounter.m which uses three inputs, n3, n2, n1, from the list (2, 3, 4, 5, 6, 7, 8,
Make a function M-file, name it as myCounter.m which uses three inputs, n3, n2, n1, from the list (2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F). The program then counts out the numbers from 0 to (n3 n2 n1) on the screen. Example: imagine that the user has used the inputs: 2 for n3, 2 for n2, and 3 for n1. Then the program would print out a counter from 0 0 0 to 1 1 2 as follows:
0 0 0
0 0 1
0 0 2
0 1 0
0 1 1
0 1 2
1 0 0
1 0 1
1 0 2
1 1 0
1 1 1
1 1 2
could someone solve this using MATLAB or GNU(octave)
Step by Step Solution
3.44 Rating (147 Votes )
There are 3 Steps involved in it
myCounterm function myCoun... View full answer
Get step-by-step solutions from verified subject matter experts
