Question: Please solve on paper (flow chart) and help with the code in MatLAB Write a program to draw the following pattern based on the height

Please solve on paper (flow chart) and help with the code inPlease solve on paper (flow chart) and help with the code in MatLAB

Write a program to draw the following pattern based on the height given by the user. The user will always enter a positive odd number. 5 5 5 5 5 4 4 4 3 4 4 4 5 5 5 5 5 7 7 7 7 7 7 7 6 6 6 6 6 5 5 5 4 5 5 5 6 6 6 6 6 7 7 7 7 7 7 7 height = 5 height = 7 h = input ('Enter the height of the pattern: '); Test Case: 1 Enter the height of the pattern: 3 3 3 3 2 3 3 3 Test Case: 2 Enter the height of the pattern: 9 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 7 7 7 7 7 6 6 6 5 6 6 6 7 7 7 7 7 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9

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!