Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Times Table A time table gives the product between two integers, for example, 5 times 5 is 25, 5 times 6 is 30, 12
Times Table A time table gives the product between two integers, for example, 5 times 5 is 25, 5 times 6 is 30, 12 times 12, etc. Write a function timesTable that outputs a times tables up to the size requested given by a positive integer sizeofTable. The top row and left column have integers from 1 to the desired size. For example >> outputMatrix = timesTable(5) outputMatrix = 1 2 3 If sizeOfTable is: 4 5 6 7 8 9 10 11 12 end 2 3 4 3 4 5 13 14 2 4 6 8 10 M6925 negative the absolute value of the value in size OfTable should be used to calculate the table. is not an integer, the table should be calculated to the nearest integer greater than or equal by size OfTable. Restriction: The timesTable function can only use while loops. 3 Your Function 1 function outputMatrix = timesTable( sizeofTable) 2 11 12 15 +00 4 8 12 16 20 5 10 15 20 25 % Insert code to determine the size of the times table Save C Reset % Insert code to initialize the table by filling all entries with zeros % Insert code to fill the first column and first row with consecutuve integers % starting with 1 % Use a loop structure to fill the remaining entries in the times table MATLAB Documentation Trouble with lah? 111 4
Step by Step Solution
★★★★★
3.39 Rating (158 Votes )
There are 3 Steps involved in it
Step: 1
function outputMatrix timesTablesizeOfTable This function produces a times table of any give...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started