explanation of this code

5 次查看(过去 30 天)
Farid Freud
Farid Freud 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