applyBoundaryCondition error on standard example
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
Trying to run a very basic code to apply boundary condition to a boundary value problem I get the following error:
Error using pde.PDEModel/applyBoundaryCondition (line 120)
Expected a string for the parameter name, instead the input
type was 'double'.
The code used is the first example of the documentation on applyBoundaryCondition:
model = createpde(1);
R1 = [3,4,-1,1,1,-1,-.4,-.4,.4,.4]';
g = decsg(R1);
geometryFromEdges(model,g);
applyBoundaryCondition(model,'dirichlet','Edge',1,'u',0);
What may be the cause of such a strange error? Using MATLAB version 2016a - academic use.
댓글 수: 0
답변 (1개)
  Ravi Kumar
      
 2016년 10월 26일
        Hi Alex,
The syntax of applyBoundaryCondition you are using was introduced in MATLAB R2016b. You are seeing the error message, because you are using older version of MATLAB. You can either upgrade your MATLAB or use the syntax as documented in R2016a.
Ravi
댓글 수: 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!

