Question: write in matlab 3. Write the code to print the following diamond. Symbol used to draw the diamond and number of rows must be taken

write in matlab
3. Write the code to print the following diamond. Symbol used to draw the diamond and number of rows must be taken as input from the user. Symbols should be in a cell array, and selected using the index taken from the user. Symbol list should include '*', '+', 'b', respectively. Example output for the program: Enter number of rows: 5 Enter index for the symbol for diamond: 2 + +++ +++++ + +++++ +++ +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
