I have two vectors (plain lists), say
a,b, from which I generated a 2d table, say
mat. It's not a direct expression like
mat[[i,j]] = a[[i]] + b[[j]], rather some more complicated computation that spans much of my code, but each entry $ij$ is essentially just some function of the corresponding
I'd like to plot that, perhaps as a contour plot, but I see that Mathematica expects the data to be given as a matrix where each entry $ij$ is a triplet
How do I construct this matrix of triplets in a proper Mathematica "way of thinking"? (i.e. without nested loops etc.) Or alternatively, can I use my current data structure and plot it directly?