How would I replace the increment operator in the following code to change from Octave to Matlab?
조회 수: 4 (최근 30일)
이전 댓글 표시
The code attached works in Octave and i need it to work in matlab but i cannot find a suitable replacement for the increment operator used in the line "indx = ++nCount(nS)". The desired out put from the code is meant to be a cell array Ivals which is 63*2 with each of the cells in the first column containing a 1 row array of all the pixel intensities that have the same s value. This row ges from those with sMin to those with s value sMax. The second column should be the designation in the array e.g. 319 501. Any help would be greatly appreciated, even if it is a complete rethink of what i have done.
댓글 수: 0
답변 (1개)
Walter Roberson
2013년 11월 6일
편집: Walter Roberson
2013년 11월 6일
I suspect the replacement would be:
nCount(nS) = nCount(nS) + 1;
indx = nCount(nS);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Octave에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!