Question: Using matlab and fprint function, write a script for A through G 1. Nesting Write segments of code using nested forloops to print out the
1. Nesting Write segments of code using nested forloops to print out the following patterns. 123 123 123 etc. up to 15 123 12 123 1234 etc. up to 15 12345678910 11 12 13 1415 12345678 2345678 345678 45678 5678 678 7 8 For parts D-G your segments of code should prompt the user for a positive integer, n, and print the following star patterns depending on D.) A star pattern with nrows. Below is the case n-6 A square. Pictured below is the case n -4 A square with a diagonal. Pictured below is case n -5 An equilateral triangle. Pictured below is case n-6 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
