How to create a contour plot for bsfc using the data for rpm, torque and bsfc on matlab

31 views (last 30 days)
I need to create a contour plot for the bsfc data of a test engine. The rpm, torque and bsfc data are mentioned below. Please guide me as to how I can create the same on Matlab.
RPM TORQUE (Nm) BSFC (gkWh) 1000 13.4 485.1
1000 2.8 1563.4
1000 12.9 470.4
1000 21.4 368.6
1000 25.8 331.5
1000 36.7 303.6
1000 43.5 216.4
1000 50 333.6
1200 8.6 570.6
1200 16.6 366.4
1200 24.6 329.3
1200 32.1 307.5
1200 37.8 298.4
1200 43.6 305
1200 50.3 336.7
1600 10.9 466
1600 18.2 371.4
1600 25.1 320
1600 33.6 268.5
1600 38.7 296.3
1600 44.2 300.5
1600 51.6 326.6
2000 11.3 467.2
2000 19.5 357.2
2000 27.8 314.3
2000 36 294.3
2000 43.1 278.5
2000 49 282.5
2000 56.4 315.5
2400 12.2 445.9
2400 19.6 345.9
2400 27.5 313.6
2400 35.5 288.8
2400 43.1 273.6
2400 50.1 274.5
2400 56.5 307.4
2800 12.4 445.7
2800 20.4 351.6
2800 26.7 312.7
2800 36.9 288.3
2800 44.9 275.2
2800 51.6 275.2
2800 57.6 311.2
3200 10.8 407.1
3200 19 367.9
3200 27.5 320.4
3200 35.7 294
3200 44.3 279.6
3200 52.7 277.2
3200 59.2 306.3
3601 9.3 564.7
3601 17.6 391.6
3601 25.7 332.4
3601 34 302.5
3601 42.6 287.2
3601 51.3 285.7
3601 58.3 309.1
4001 9.6 552.8
4001 17.9 391.5
4001 26.1 334.3
4001 34.4 306
4001 42.9 303.7
4001 51.4 296.8
4001 58.5 309.4
  6 Comments

Sign in to comment.

Answers (3)

Petar Pavic
Petar Pavic on 24 Jul 2019
Here is the .m file :)

bym
bym on 23 Apr 2011
doc contour()
*edit*
you need to reshape your data before calling contour. Also the second data row (1000 2.8 1563.4) is an outlier, so I'd delete it. assuming d is your data in matrix form:
rpm = reshape(d(:,1),7,[])% do the same for torque & bsfc, then
contour(rpm,t,bsfc)
  5 Comments
Avinash
Avinash on 24 Apr 2011
Yes, That is what I wish to do. I have the data, but I do not know how to interpret it to plot a contour for the bsfc. I mean if you look at the data - for same rpms at different torque values, I have different bsfc. I have to plot a contour for this bsfc.
Avinash
Avinash on 25 Apr 2011
Hey Proecsm, I could plot the contour using the codes which you have provided. However the contours which are being generated are too noisy. Is there any way to smoothen the plot so that I can derive useful information from the plot. I read somewhere about using Gridfit. Can I use it here and if yes how?

Sign in to comment.


Stephen Jones
Stephen Jones on 13 Feb 2017
https://www.mathworks.com/matlabcentral/answers/195299-how-do-i-create-a-bsfc-contour-map

Categories

Find more on Contour Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!