How to generate matrix with any size in same pattern?

i need to generate a matrix with pattern like this. how to write a script that the required pattern
for example, if i need 10*10 matrix with the required pattern it will be like this
0 1 1 1 1 0 0 0
-1 0 0 0 0 1 1 1
-1 0 0 -1 0 -1 0 0
-1 0 1 0 -1 0 0 0
-1 0 0 1 0 0 0 -1
0 -1 1 0 0 0 1 0
0 -1 0 0 0 -1 0 1
0 -1 0 0 1 0 -1 0

댓글 수: 1

I don't see what the pattern is supposed to be. Can you explain it?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기

질문:

2021년 2월 24일

댓글:

Rik
2021년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by