Make a function M-file, name it as myCounter.m which uses three inputs, n3, n2, n1, from the
Fantastic news! We've Found the answer you've been seeking!
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, 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)
Related Book For
Posted Date: