Ask for a code

7 visualizaciones (últimos 30 días)
Tran Hoa
Tran Hoa el 29 de Mzo. de 2018
Comentada: Walter Roberson el 29 de Mzo. de 2018
Please explain for me this code
function [L,I]=selectdof(DOF,seldof,varargin)
%SELECTDOF Select degrees of freedom.
% % L=selectdof(DOF,seldof)
% [L,I]=selectdof(DOF,seldof)
% L=selectdof(DOF,seldof,'Ordering',ordering)
% creates the matrix to extract degrees of freedom from the global degrees of
% freedom by matrix multiplication. %
% DOF Degrees of freedom (nDOF * 1)
% seldof Selected DOF labels (kDOF * 1)
% L Selection matrix (kDOF * nDOF)
% I Index vector (kDOF * 1)
% ordering 'seldof','DOF' or 'sorted' Default: 'seldof'
% Ordering of L and I similar as seldof, DOF or sorted
I have 5 nodes with coordinates
% Nodes=[NodID X Y Z]
Nodes= [1 0 0 0;
2 0 4 0;
3 0 4 0;
4 4 4 0;
5 4 0 0;
6 1 5 0];
why seldof at nodes 1 and 5 is
seldof=[0.03; 0.04; 0.05; 1.00; 5.01; 5.02];
What seldof mean ?
  4 comentarios
Adam
Adam el 29 de Mzo. de 2018
It's very difficult for someone to just explain an arbitrary function from somewhere else that doesn't include any validation of inputs or comments as to what they are supposed to be.
Your first port of call should be asking the person you got the code from. We don't know if the code even works so spending time trying to understand what it is doing is not worth it without more information.
Walter Roberson
Walter Roberson el 29 de Mzo. de 2018
The above was the only record I could find of the toolbox, with the exception that I see the paper listed on the publication list at that university.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Matched Filter and Ambiguity Function en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by