Feeds
提问
My script is working wrong with nested for loops
d = input('enter a number:') figure for b = 0:0.5:d plot(b, 0, '*k') pause(0.05) end for c = 0:0.5:d plot(0, c,...
5 years 前 | 2 个回答 | 0
2
个回答提问
Plotting Square Consisting of '*'
I am trying to create a square consisting of '*' with for loop. I did this a = input('enter a number:') for ii = 1:a for ...
5 years 前 | 2 个回答 | 0
2
个回答提问
Creating matrix with diag command
I am trying to do this a = input('enter a number: ') for i=1:1:a for j=1:1:a z(i,j)= diag(a) end end z I...
5 years 前 | 1 个回答 | 0

