I have two matrixes, GalList.mass and GalList.dist, that I need to create a singular function out of.
Both have dimensions of a 53228×1 double matrix.
GalList.mass is essentially a collective matrix of masses in the universe, while GalList.dist is a collective matrix of the distances of galaxies in the universe. I need to make a mass a function of distance, or M(r), but I do not know how to do that. I have tried nested functions, but that did not help.
SIDE NOTE: X1 = GalList.dist Y1= GalList.mass
I am fairly new to Matlab, so any help would be appreciated!