What is the meaning of p(1, :) in the following lines?
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
p = thermalModelT.Mesh.Nodes;
nodesLeftEnd  = find(p(1,:) < -1.5+eps);
nodeCenter = nodesLeftEnd(p(2,nodesLeftEnd) < eps);
nodeOuter = nodesLeftEnd(p(2,nodesLeftEnd) > 0.2-eps);
In the above lines, what does it mean by p(1,:) and p(2,nodesLeftEnd)?
댓글 수: 1
  Stephen23
      
      
 2020년 8월 27일
				"what does it mean by p(1,:) and p(2,nodesLeftEnd)?"
Very basic MATLAB concepts, such as indexing into arrays, is explained in the introductory tutorials:
채택된 답변
  Alan Stevens
      
      
 2020년 8월 27일
        It refers to the first row and all columns of matrix p. 
So find(p(1,:) <  -1.5+eps); means look through all the columns of the first row of p and find which ones satisfy the condition that they are less than -1.5+eps.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Geometry and Mesh에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!