I have some code will test an equation and finds values for (n,j,k,l) in which the expression is true and puts them in the matrix - here is the code.
m = Table[
If[(n)^2 + (j)^4 + (k)^3 + (l) == 0, {n, j, k, l}, Nothing], {n,
0, 10, 1}, {j, 0, 10, 1}, {k, -10, 0, 1}, {l, -10, 0, 1}] //
Flatten[#, 3] & // Select[Length@# > 0 &]; m // MatrixForm
Here is the output
So the columns of the matrix correspond to the values of (n,j,k,l). Now I want to create a new matrix, where I introduce a counter value that starts at say 0.01 and increments by 0.01 with each iteration, call it a++
.
The new 3 column matrix will take the value of (n,j,a) and put it into the matrix as the first row, and also (while keeping the same a value) will also add (k,l,a) as the second row and then move the next row of the original matrix and so the same process, with the counter a incremented.
The code I made for this (although it does not work) is as follows
For[i = 1, i < 20, i++, m2[[i]] = {{m[[i, 1]]}, {m[[i, 2]]}, {i}};
m2[[i + 1]] = {{m[[i, 3]]}, {m[[i, 4]]}, {i}}]
Lastly, I want to use the 3 column matrix as (x,y,z) points to plot 3D point plot of surface in Mathematica