Understand part of code
Mostrar comentarios más antiguos
Hello, I would appreciate your help, I am new to using Matlab and my programming skills are very basic. Could someone explain to me what this piece of code performs:
axd2i=axd2(:,1);axd2d=axd2(:,2);
axd2i(axd2i==0)=[];axd2d(axd2d==0)=[];
axd2=[axd2i axd2d];
z=0;
y=length (axd2(:,1));
for i=y:-1:1
if y-i+1==axd2(i,2)
z=z+1;
end
end
axd2=axd2(y-z+1:end,:);
It is a program to graph arrows in a structure, but the author is sick with COVID and cannot help me at this time.
Thanks in advance
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Calendar en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!