Community Profile

photo

sky2


Last seen: 1 year ago Active since 2021

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

View by

Question


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,...

3 years ago | 2 answers | 0

2

answers

Question


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 ...

3 years ago | 2 answers | 0

2

answers

Question


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...

3 years ago | 1 answer | 0

1

answer