Question: Create a 100 by 100 matrix on matlab where the diagnals are zeros and the numbers to the left and the right of the diagnals

Create a 100 by 100 matrix on matlab where the diagnals are zeros and the numbers to the left and the right of the diagnals are -1. The rest of the numbers are zero.

ex:Create a 100 by 100 matrix on matlab where the diagnals are

0 1 0 0 0 0 0 0 0 0 | -1 0 1 0 0 0 0 0 0 0 | 0 1 0 - 1 0 0 0 0 0 0 |0 0 - 10 10 0 0 0 0 |0 0 0 1 0 1 0 0 0 0 |0 0 0 0 - 10- 10 0 0 |0 0 0 0 0 - 10- 10 0 | 0 0 0 0 0 0 1 0 1 0 | 0 0 0 0 0 0 0 -1 0 -1 | 0 0 0 0 0 0 0 0 1 0 00000 0100000 0 1000 0 10 100 00000 0000000 00 0000 000

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!