Question: 7) Write a MATLAB program that reads a data file (prog7.dat) with only 1 line. This line contains the values of nl and n2. The

7) Write a MATLAB program that reads a data file (prog7.dat) with only 1 line. This line contains the values of nl and n2. The program will then do the following: a) Print all cubes less than nl. b) Print all powers of 4 less than n2. The output of this program should look like this: n1-1000 13 1 2^3= 8 3 3- 27 4 3-64 5A3-125 6 3-216 7^3=343 8 3 512 9 3-729 n2 262144 42 16 4364 4 256 4 5 1024 46 4096 4 7-16384 4 8-65536
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
