Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Search for points in a cell having matrices as elements.If the point matched with any cell store that element matrix and plot that Matrix data points,first three columns. i am attaching the in put file .And a code that i tried ,but it plots all .
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
EXTRACT ALL THE POINTS THAT share the same plane of Picked_P
%for each Picked_P
%look inside each P_giacitura{i,1} if you find the Picked_P
%If yes save all the P of P_giacitura{i,1} in a specific matrix (Associated_P) and
%extract for giaciture_def the first 3 colum values that correspond
%to i
%plot the matrix P together with all the points of Associated_P
%and a surface generated by means of the first 3 colum values of
%giaciture_def(i,:),
please help me i am not able to figure out what is the mistake .this is the first time i am using loop.Thanks in advance
for i = 1:22
A= P_giacitura{i,1};
for j = 1:m
B=ismember(Picked_P(j,[1 2 3]),A(:,[1 2 3]),'rows');
if B==1
Adapted_P = P_giacitura{i,1}(:,[1 2 3]);
Q = giaciture_def(i,[1 2 3]);
plot3(Adapted_P(:,1),Adapted_P(:,2),Adapted_P(:,3),'x');
continue
end
end
end
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!