changing value in a 2d array
이전 댓글 표시
hi, thank you for your help.
I would like to know how to change values in a 2d array. For example, I have an 2d array A as of 1000x1000, of all zero values
I want to change value in position, 1x1, 1x100, 1x1000 to value 1.
do you know a quick way of doing this?
채택된 답변
추가 답변 (2개)
charlie
2011년 7월 11일
댓글 수: 4
James Tursa
2011년 7월 11일
Please post your code, or a simplified version of it that will show the problem you are having.
Oleg Komarov
2011년 7월 12일
It doesn't loop, but it outputs the result on the command window. Use ";" as included in the code snippets to supress screen print.
bym
2011년 7월 12일
agree with Oleg, just didn't post soon enough!
charlie
2011년 7월 12일
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!