Info
此问题已关闭。 请重新打开它进行编辑或回答。
In regards to connecting points
1 次查看(过去 30 天)
显示 更早的评论
After discussing the project more with my professor, I have learned that I did this wrong. What I was suppose to do was this:
Calculate the Mach number at each of the three altitudes for mdotfuel=.1, .2, .3, .4, .5, .6, .7 Note: In this code I change mdotfuel to mdotf The flight Mach number is M_0.
In case you forgot what I'm plotting it is 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 again, I'm stuck at plotting out the three plots. I've tried using your code that you supplied to me on the first question but for some reason it doesn't work when I attempt to implement it in this new code. I thought I knew how your code worked but I was wrong when I tried to make adjustments. Could you explain to me how this works.
Note: The updated code now grabs data from an excel sheet because if I happen to make a change in the excel sheet, I won't have to change all the values that I'm using. You won't have to do anything with the Excel file. You can download zip file with the .m file and excel sheet at the link below. Thanks again for all the help you've given. I would really like to learn the 3 dimensional matrix tool.
Harold
2 个评论
Walter Roberson
2011-3-3
The reference to "you" appears to be to Matt's solution in http://www.mathworks.com/matlabcentral/answers/2118-connecting-points-in-a-scatter-plot
回答(1 个)
Walter Roberson
2011-3-3
Your code does not contain any plot attempts, not even commented out. Please indicate what you want to plot against what.
You calculate a number of values within the double-nested loop, but you do not save any of the values in to an array. When you think of plotting, you should almost always be saving values in to an array to plot a line at a time (or to plot everything at the end.)
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!