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]);

Antworten (1)

Cris LaPierre
Cris LaPierre am 27 Feb. 2021

0 Stimmen

It means "or". See here.

2 Kommentare

Farid Freud
Farid Freud am 27 Feb. 2021
thank you
i need the meaning of entire line
fixedDof=find(xx==min(nodeCoordinates(:)) ...
| xx==max(nodeCoordinates(:)))’;
Cris LaPierre
Cris LaPierre am 27 Feb. 2021
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..

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2017a

Tags

Gefragt:

am 27 Feb. 2021

Kommentiert:

am 27 Feb. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by