Point coordinates generation using for loop
조회 수: 2 (최근 30일)
이전 댓글 표시
Starting at
a = [0, 0]
I am trying to create a for loop to make i and j in "a" to do the following: [1,0]..[2,0]..........[9,0]
[1,1] [2,1]...............[9,1]
[1,2]..[2,2]............[9,2] and so on
댓글 수: 0
채택된 답변
Image Analyst
2021년 7월 3일
OK, so did you do it? Do you have any questions? I imagine you came up with something like this:
for j = 0 : 2
for k = 1 : 9
a = [k, j]
end
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!