table having entries as points of elliptic curves
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Muhammad Sohail Abid
el 3 de Jul. de 2018
Comentada: Muhammad Sohail Abid
el 3 de Jul. de 2018
I have 123387x2 arrays entries of elliptic curve points. I want to make a table of mxn order and also have to neglect the points having same x value, only take one point for each x-value
2 comentarios
Respuesta aceptada
Mridul G
el 3 de Jul. de 2018
I assume you have 123387 (x,y) points, want to filter out points with the same x coordinate (pick one randomly for each x value), and then store it an appropriate table such that each cell contains an (x,y) tuple. You can first convert the matrix to a table, which would make life easier. The following might help:
mat = randi(100,100,2); %sample points
a = array2table(mat);
a = sortrows(a);
A = table2array(a);
[B, ia] = unique(A(:,1));
C = A(ia,2);
D = [B C];
%now you have your unique points, insert them into your m x n table as required
Más respuestas (0)
Ver también
Categorías
Más información sobre Discrete Math en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!