I have a matrix of float values that I need to make a PGM file out of. I think I need to turn these into an array of unsigned chars (correct me if I'm wrong). I need to know how to go about doing this.
I have read about fcvt, but I'm not sure if this is what I need since it splits things into separate parts. Any help is greatly appreciated.
Thanks in advance