Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB PROBLEM! please, give details if you can and thanks in advance! CP# 4, Stinkbugs, Can We Stop Them? As starting point we will tray

MATLAB PROBLEM! please, give details if you can and thanks in advance!

image text in transcribed

CP# 4, Stinkbugs, Can We Stop Them? As starting point we will tray the following combinations in an initial toy 5x5 problem, within the 25x25 matrix. Let's take the 5x5 submatrix at the center of the 25x25 in blue (1) Along a row: (2) Along a column (3) Along the diagonal 4) Along the antidiagonal (5) Sum of all 5x5 elements Stinkbugs Have Spread to 41 States, can we stop them? If you don't yet know what a brown marmorated stinkbug Halyomorpha halys) is, consider yourself lucky. These invasive insects are marching their way across more and more of the United States, spoiling fruit harvests and driving homeowners crazy. The stinkbug species seems to have hitched a ride to the U.S. in the mid-1990s in a shipment of Asian goods. The earliest sightings occurred in Allentown, Pennsylvania, but in just two decades the hardy pests have spread to at least 41 states. 304 95 50 91 546 26 24 62 52- 232 85422 48 23 (1) The sum of one row is 33+48+23+76+52 = 232 304 (2) The sum of one column 81+97+85+8+33 A PR researcher have collected stinkbugs population in a 2.5x 2.5 km square field. In an effort of the United States Department of Agriculture who has been working to understand the threat stinkbugs pose and detect patterns in how they move. Top down the problem, and find the sum of bugs in a nx n small area (say n-5) which may signal their movement behavior in a larger area. In the 25x25 grid below, twenty five neighboring numbers have been marked in blue in a 5xs matrix. They represent number of bugs found in smaller area: (3) The sum of the diagonal is 81+7+78+81+52 299 (4) The sum of the antidiagonal is 33+28+78+9+37 185 (5) The sum of all 5x5 neighbors is 1135 Once we are able to solve the toy problem, the program code will become a user-defined function i.e., one targeting a 5x5 submatrix) and a search within the full 25x25 matrix should be attempted. Follow the initial top-down design: 0 35 3S 25 34 50 92 54 46 57 69 71 955 79 70 60 66 91 54 76 13 84 9 96 514 3881 3872 40 81 4 113 45 57 55 1185 70 30 60 25 5258156 89 70 84 43 57 674 11 94 26 37 44 66 74 70 16 77 38 53 70 4 72 88 84 56 19 98 33 82 52 35 40 72 8 57 89 50 82 32 48 35 20 72 0 74 23 69 19 37 17 0 16 27 82 77 23 24 61 70 87 32 53 78 49 61 84 98 88 87 38 36 45 12 38 51 70 11 1 45 12 20 52 78 23 59 85 71 22 21 58 9 6 40 25 63 58 54 85 54 6 90 79 38 62 81 22 56 39 44 29 67 47 93 64 58 64 14 30 4 98 34 31 46 16 12 48 49 92 34 39 83 80 278 12 80 70 48 38 92 21 8S 94 47 21 17 38 S6 49 PART1: In the toy' problem, What is the greatest sum of five adjacent numbers in the 5x5 grid? PART 2: For this part use load (command or function) to import the bug data input; call the file: bugdata.m What is the greatest sum of five adjacent numbers in the 25x25 grid? What is the greatest 5x5 subarray sum in the 25x25 grid 84 53 73 33 5 66 57 82 56 38 53 95 53 10 57 24 42 46 64 75 40 78 69 53 9 80 86 73 57 37 81 93 99 53 81 95 50 22 37 1 34 41 28 28 88 91 83 95 20 60 18 72 94 86 77 79 86 64 76 97 7 30 9 26 0 20 95 8 51 47 22 67 54 62 51 24 66 50 20 16 46 50 70 23 85 54 78 6 24 60 50 74 58 24 16 36 41 63 3 1 518 78 67 90 31 78 92 58 8 28 23 81 62 48 94 97 15 29 80 32 64 57 32 68 60 54 45 89 32 68 47 68 45 33 48 23 76 52 27 39 23 7 64 478 21 92 53 94 77 95 84 20 33 98 82 56 85 23 68 46 19 41 26 58 10 57 88 12 51 61 86 32 88 51 59 39 30 20 76 32 38 65 31 21 61 89 22 48 60 38 28 85 87 82 67 17 60 11 380 73 49 76 82 97 63 35 97 60 61 68 85 23 71 50 36 21 63 90 60 18 36 5 98 97 97 88 7 70 28 36 34 54 32 12 65 855 40 56 72 40 10 72 34 24 1 24 50 88 52 50 94 59 7 40 25 74 87 12 98 28 17 85 97 85 88 90 38 36 74 90 55 33 21 43 27 16 75 74 37 94 83 13 28 3 61 26 91 49 34 25 3 30 17 20 63 61 17 3 21 53 28 49 82 46 30 17 10 73 42 77 20 74 40 95 96 4 68 79 97 65 30 62 45 32 57 68 86 91 50 16 89 95 41 49 95 60 28 99 94 61 98 87 49 70 67 79 57 1 11 41 14 7 32 90 36 10 15 82 58 91 82 79 26 20 16 68 92 3S 17 74 9 74 47 37 151 96 80 20 73 74 15 93 8 38 80 14 66 76 82 378 77 85 83 77 15 94 33 70 71 1D 53 34 70 72 15 40 65 16 79 50 95 61 65 50 48 23 90 51 Submit matlab code, output and 3D surface graph of sums of each 5x5 submatrices before midnight Sunday, Jan 14, 2018. Email Subject: CP#4. One PDF report is requested. One paper copy of the full project. Consult the references. One hypothesis is that bugs movement in the 25x25 grid is affected by air currents Temperature? Nutrients? Does the maximum 5-neighbor in a 5x5 submatrix show a trend in the 25x25? Express your opinion based in quick data inspection. BEAR FACTS by Burke ugs.m REFERENCES -3D plots: Plots ppt I'm a stink bugt

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

Persuading Your Audience Strategies for

Answered: 1 week ago