explanation of this code

조회 수: 2 (최근 30일)
Farid Freud
Farid Freud 2021년 2월 27일
댓글: Cris LaPierre 2021년 2월 27일
what the role of I in this code ?
can you explain this line in detail
fixedDof=find(xx==min(nodeCoordinates(:)) ...
| xx==max(nodeCoordinates(:)))’;
L=90;
numberElements=3;
nodeCoordinates=linspace(0,L,numberElements+1);
xx=nodeCoordinates;
% boundary conditions and solution
% prescribed dofs
fixedDof=find(xx==min(nodeCoordinates(:)) ...
| xx==max(nodeCoordinates(:)))’;
prescribedDof=[fixedDof]
% free Dof : activeDof
activeDof=setdiff([1:numberNodes]’,[prescribedDof]);

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 2월 27일
It means "or". See here.
  댓글 수: 2
Farid Freud
Farid Freud 2021년 2월 27일
thank you
i need the meaning of entire line
fixedDof=find(xx==min(nodeCoordinates(:)) ...
| xx==max(nodeCoordinates(:)))’;
Cris LaPierre
Cris LaPierre 2021년 2월 27일
The function names seem to be pretty clear on what they are doing, but if you have any doubts, look up the functions in the documentation to see what they do..

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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by