Question: Using matlab Nested for -loops Write function table_mult to make a multiplication table of size NxN as show below, for an input valye of table
Using matlab
Nested for -loops
Write function "table_mult" to make a multiplication table of size NxN as show below, for an input valye of table size, N. The function will return a matrix with values as shown in the table.
You may assume N to be a positive integer
A=table_mult(5)
A=
1 0 0 0 0
2 4 0 0 0
3 6 9 0 0
4 8 12 16 0
5 10 15 20 25
B=table-mult(1) B=1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
