MATLAB Answers

Faulty result on contour map

2 views (last 30 days)
Volkan Yangin
Volkan Yangin on 29 Nov 2016
Commented: Volkan Yangin on 3 Dec 2016
I have just created a contour map, but some values are false. I don't know where is my error? May you help me? My dataset at the attachment.
a = surf(rpm, kw, bsfc);
[a,b] = contourf(rpm, kw, bsfc);
Volkan Yangin
Volkan Yangin on 30 Nov 2016
For example, at 2000 rpm and 60 kw, BSFC value must be 0, but the same point on the contur graph shows this point as 350 g/kWh.
I am using MATLAB 2008 and i didn't try anything about this process.

Sign in to comment.

Answers (1)

Daniel kiracofe
Daniel kiracofe on 30 Nov 2016
Not 100% sure what you mean by "some values are false", but I suspect that you've just transposed x and y axis. Does
a = surf(kw,rpm, bsfc);
[a,b] = contourf(kw, rpm, bsfc)
do what you want?
If not, then please elaborate on what you don't like about the graph and what you think it should look like.
Volkan Yangin
Volkan Yangin on 3 Dec 2016
Thank you Guillaume At the lessons, we write 0 at over of the full load curves. So, i wrote as 0, too.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by