I am trying to design a system where I can upload a JPG file, and then run it through a matlab function block which converts the jpg file to bits so that i can use it for an OFDM IEEE 802.11a simulink model. The reference model I am using is the following link attached:
I am trying to replace the bernoulli generator with a Matlab Function block which converts the jpg file into bits so i can use that as for transmission, and after the simulation is over, I intend to collect those bits that were transmitted and reconstruct the image again. The OFDM system sends in 144 bits at a time, so that needs to be noted when designing the matlab code for jpg to bits. Any and all help will be greatly appreciated!