I can guide you on the steps and what functions could be used.
BER Calculation: You can use the biterr function in MATLAB to calculate the Bit Error Rate (BER). This function takes two binary data sequences as input and calculates the number of bit errors and the ratio of error bits to the total number of transmitted bits.
PAPR Calculation: To calculate the Peak-to-Average Power Ratio (PAPR), you can use the comm.PAPR function available in MATLAB's Communications Toolbox. This function calculates the PAPR of the input signal.
Complexity Analysis: To compare the complexity of GFDM and OFDM, you might want to consider factors like modulation order, subcarrier spacing, filter length etc. However, MATLAB hasn't a specific built-in function to perform this. You may need to write custom code to compute and compare the complexity, based on the factors you're considering.
You would have to build custom functions for the GFDM transmitter and receiver parts since MATLAB doesn't provide built-in functions specifically for GFDM. Typically, you might start with baseband modulation of the data symbols, map these onto GFDM subcarriers, apply the necessary pulse shaping, and then sum these up to generate the GFDM signal.
Please note that you'll need a good understanding of the GFDM and OFDM signal processing chain to implement and compare these systems in MATLAB. I recommend checking out the MATLAB documentation and various online resources to get started with this project. If you have specific questions or need help with specific parts of this project, feel free to ask!