![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6910204_1494510428586.jpg)
Matt
MathWorks
Followers: 0 Following: 0
I am a Training Engineer at the MathWorks. I focus primarily on Finance training.
My academic background is in Physics and Math.
Feeds
已解决
Matrix of almost all zeros, except for main diagonal
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...
8 years 前