error in heat transfer example

조회 수: 3 (최근 30일)
cgenes
cgenes 2019년 4월 4일
댓글: cgenes 2019년 4월 8일
Hi when working through the example
I get an error on this line
thermalProperties(thermalModelS,'ThermalConductivity',kFunc);
Error using pde.ThermalMaterialAssignment/checkCoefFcnHdlArgCounts (line 368)
Function specifying a material property must accept 2
input arguments and return 1 output argument.
Error in pde.ThermalMaterialAssignment/checkFcnHdlArgCounts (line 203)
self.checkCoefFcnHdlArgCounts(self.ThermalConductivity, systemsize, ndims);
Error in pde.ThermalMaterialAssignment (line 84)
self.checkFcnHdlArgCounts(systemsize, numdims);
Error in pde.ThermalModel/thermalProperties (line 110)
mtl = pde.ThermalMaterialAssignment(mtlContainer,argsToPass{:});
Is that just me and my verison of matlab vs2018?
thanks
Charlie

채택된 답변

Ravi Kumar
Ravi Kumar 2019년 4월 5일
Hi Charlie,
What version of MATLAB are you running R2018a or R2018b. In any case, you should not see this error if you run the example without any modification.
Are you modifying the kFunc is someway?
Regards,
Ravi
  댓글 수: 1
cgenes
cgenes 2019년 4월 8일
yes i'm not sure what i was doing rong but it works now thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by