Create a texture from an array

Hello all,
I am trying to build a terrain generator based off of perlin noise. So i can display the noise i create i would like to display it as a texture 2d on a plane. My noise is stored as an array of float values and i would like to transform that array into a gray scale texture where a value of 0 corresponds to black and 1 corresponds to white. does anyone know how to 1) create a texture2d from a float array and 2) apply that array to a plane.

I have ended up finding a tutorial on the subject. Please check out this person’s tutorial if you would like to do this yourself