Community Profile

photo

Sowmya Allani


2 total contributions since 2019

Sowmya Allani's Badges

  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
how to replace elements in top third, middle third, and bottom third of matix
function T=trio(n,m) T=randi(3,3*n,m) [n,m]=size(T) x=n/3; T(1:x,:)=1; T(x+1:x*2,:)=2; T((x*2)+1:x*3,:)=3; end

3 months ago | 0

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3 months ago