Method of Characteristics in MATLAB!
MOC.m contains the M file, MATLAB code nozzle.png is a flowchart PARAMS.xlsx contains the Excel file input parameters mach.png and pressure.png is the ANSYS CFD simulation results!
Have fun!
FOR MORE INFO...
ANSYS CFD simulation of the resulting nozzle! https://www.youtube.com/watch?v=oY_3_c0rDiw&t=455s
How a Rocket Engine works (Things beginners need to know) https://www.youtube.com/watch?v=3zagXTc4hBk&t=3s
MATLAB Programming Fundamentals: https://www.youtube.com/watch?v=Hp6FNrtlk3U&t=87s