matrix for Ternary ABC points
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hello,
i need to generate a matrix with an interval of 0.05 for a ternary system, like;
[0 0 100 -------------> sum of each row must be 100
0 0.05 99.95
. . .
. . .
0.05 0 99.95
0.05 0.05 99.9
. . .
. . .
100 0 0]
help would be greatly appreciated.
Emre
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 29 de Mzo. de 2012
so?
a = (0:.05:100)';
[x y] = ndgrid(a);
out = [y(:) x(:) flipud(x(:))];
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!