- #1
roldy
- 237
- 2
Here's small part of a project I'm working on. The code is not part of the grade. I'm just doing this for my own benefit and I figured that MATLAB can do the plotting automatically for me.
Calculate the Mach number at each of the three altitudes for mdotf=.1, .2, .3, .4, .5, .6, .7 The flight Mach number is M_0.
I'm plotting Thrust vs. M_0 for 7 different mdotf values. I need to do this at 3 different altitudes.
I wrote the code to do just this. But I'm stuck at plotting out the three plots.
The code grabs data from an excel sheet to use in calculating M_0. I wanted to have flexibility with the data; in case I needed make a change in the excel sheet, I won't have to change all the values that I'm using in MATLAB. You won't have to do anything with the Excel file. Attached is the .m file and the Excel sheet in a zip file. They have to be in the same folder of course in order to work.
Calculate the Mach number at each of the three altitudes for mdotf=.1, .2, .3, .4, .5, .6, .7 The flight Mach number is M_0.
I'm plotting Thrust vs. M_0 for 7 different mdotf values. I need to do this at 3 different altitudes.
I wrote the code to do just this. But I'm stuck at plotting out the three plots.
The code grabs data from an excel sheet to use in calculating M_0. I wanted to have flexibility with the data; in case I needed make a change in the excel sheet, I won't have to change all the values that I'm using in MATLAB. You won't have to do anything with the Excel file. Attached is the .m file and the Excel sheet in a zip file. They have to be in the same folder of course in order to work.