formal initialisation of matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I would like to know if it's possible to create a matrix A by giving the value of every coefficient A(i,j). Something like that :
A(i,j) = i+j
I would like to do this directly when the matrix is created, not using the double for i, for j.
Thankyou for your answer,
댓글 수: 0
채택된 답변
추가 답변 (4개)
Titus Edelhofer
2014년 4월 9일
Hi Julien,
often you can use the function meshgrid for this...
Titus
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!