Info

This question is closed. Reopen it to edit or answer.

Making 1s matrix using loop

2 views (last 30 days)
Wahab Ahmad
Wahab Ahmad on 24 Mar 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
create a 1s matrix by using loops assign each element a new value in a matrix assign -1 on the adjacent diagonal and assign 3 on the main diagonal and 0 in remaining?
  10 Comments
Ameer Hamza
Ameer Hamza on 24 Mar 2020
Its my assignment work I didn't know about loop using to make matrix
Precisely the reason we cannot merely give you a solution. The goal of the assignment is to make you learn about creating a matrix using loops, not to ask some stranger on the internet to get it done for you.
Wahab Ahmad
Wahab Ahmad on 25 Mar 2020
I m done it myself so no need of worry

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!