Question: USE MATLAB PLEASE Write a MATLAB program that obtains from the user two search criteria: 1) a string to search for 2) a minimum orbital
USE MATLAB PLEASE
Write a MATLAB program that obtains from the user two search criteria:
1) a string to search for 2) a minimum orbital inclination
The program then prints a list of all geosynchronous satellites that meet both criteria. Number each satellite and print the total number of satellites found.
The search string the user enters is used to select satellites whose name begins with the search string. To do this you can use the MATLAB function
startsWith(name, search_string,'IgnoreCase' ,true)
which returns true if the string 'name' begins with 'search_string'
Here is an example of correct output:
case 1: search string is empty string (matches anything) minimum inclination 45 degrees
>> Sat_Finder_name_inc_Solution Enter search string: Enter minimum inclination: 45
1 54.21 36828 BEIDOU-2 IGSO-1 2 49.75 37256 BEIDOU-2 IGSO-2 3 60.67 37384 BEIDOU-2 IGSO-3 4 54.49 37763 BEIDOU-2 IGSO-4 5 49.87 37948 BEIDOU-2 IGSO-5 6 51.44 40549 BEIDOU-3S IGSO-1S 7 51.10 40938 BEIDOU-3S IGSO-2S 8 58.48 41434 BEIDOU-2 IGSO-6 9 55.10 43539 BEIDOU-2 IGSO-7 10 56.94 44204 BEIDOU-3 IGSO-1 11 55.14 44337 BEIDOU-3 IGSO-2 12 56.84 44709 BEIDOU-3 IGSO-3
12 Satellites found
case 2: search string is 'BEIDOU' minimum inclination 0 degrees >> Sat_Finder_name_inc_Solution Enter search string: BEIDOU Enter minimum inclination: 0
1 1.97 36287 BEIDOU-2 G1 2 2.03 36590 BEIDOU-2 G3 3 54.21 36828 BEIDOU-2 IGSO-1 4 1.02 37210 BEIDOU-2 G4 5 49.75 37256 BEIDOU-2 IGSO-2 6 60.67 37384 BEIDOU-2 IGSO-3 7 54.49 37763 BEIDOU-2 IGSO-4 8 49.87 37948 BEIDOU-2 IGSO-5 9 2.16 38091 BEIDOU-2 G5 10 1.56 38953 BEIDOU-2 G6 11 51.44 40549 BEIDOU-3S IGSO-1S 12 51.10 40938 BEIDOU-3S IGSO-2S 13 58.48 41434 BEIDOU-2 IGSO-6 14 1.96 41586 BEIDOU-2 G7 15 55.10 43539 BEIDOU-2 IGSO-7 16 1.14 43683 BEIDOU-3 G1 17 56.94 44204 BEIDOU-3 IGSO-1 18 1.49 44231 BEIDOU-2 G8 19 55.14 44337 BEIDOU-3 IGSO-2 20 56.84 44709 BEIDOU-3 IGSO-3 21 1.99 45344 BEIDOU-3 G2 22 0.89 45807 BEIDOU-3 G3
22 Satellites found You might wonder if there are more satellites than those in geosynchronous orbit. You can easily check this by running the program with the url changed to the data for all active satellites.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
