Question: MATLAB Programming language Write a program that uses an input function to read an index number from the user, and prints the data for the

 MATLAB Programming language Write a program that uses an input functionto read an index number from the user, and prints the data

MATLAB Programming language Write a program that uses an input function to read an index number from the user, and prints the data for the selected satellite in the format used for assignment 1. The program will read data into a variable named sat_list, which will then be a vector of strings. Every 3 lines represents one satellite. You can read access a line of data as shown in the pdf: sat_list(i) is line i from the data. Satellite 1 will have it's name, TLE line 1 and TLE line 2 in sat_list(1) sat_list(2) sat_list(3) Satellite 2 will have it's name, TLE line 1 and TLE line 2 in sat_list(4) sat_list(5) sat_list(6) So if the number the user enters is saved in variable n, you need to compute the three index numbers from n. Store the three lines in string variables named name, line_1 and line_2, just like in assignment 1, but instead of using string literals, use the sat_list: name = sat_list(1); will put the name of satellite 1 into the name variable. MATLAB Programming language Write a program that uses an input function to read an index number from the user, and prints the data for the selected satellite in the format used for assignment 1. The program will read data into a variable named sat_list, which will then be a vector of strings. Every 3 lines represents one satellite. You can read access a line of data as shown in the pdf: sat_list(i) is line i from the data. Satellite 1 will have it's name, TLE line 1 and TLE line 2 in sat_list(1) sat_list(2) sat_list(3) Satellite 2 will have it's name, TLE line 1 and TLE line 2 in sat_list(4) sat_list(5) sat_list(6) So if the number the user enters is saved in variable n, you need to compute the three index numbers from n. Store the three lines in string variables named name, line_1 and line_2, just like in assignment 1, but instead of using string literals, use the sat_list: name = sat_list(1); will put the name of satellite 1 into the name variable

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!