Filter command for contour plot MATLAB

  • MATLAB
  • Thread starter Alex91
  • Start date
  • Tags
    matlab
  • #1
7
0

Main Question or Discussion Point

Hi all,

I have made a BSFC plot in MATLAB with engine data tested on an eddie current dyno, The code I used for it is:

>> NP=40;
>> [RP TP]=meshgrid(linspace(min(RPM),max(RPM),NP),linspace(min(Torque),max(Torqu e),NP));
>> BSFC_IT=griddata(RPM,Torque,BSFC,RP,TP);
>> NC=12;
>> Fig1=figure;
>> [CT HT]=contourf(RP,TP,BSFC_IT,round(logspace(log10(210),log10(400),NC)));
>> colorbar;
>> %clabel(CT,HT);
>> xlabel('Engine Speed (rpm)')
>> ylabel('Torque (Nm)')
>> title('Contours of BSFC (g/kWh)')

With all my data this gave me a contour plot that looks like the image I have attached and this is after fiddling with all of the data to make it look 'pretty'.

I know you can use the filter function to smooth out plots, so my question is, how can I use the filter function to smooth out the curves with the complex code I have?

Any help is much appreciated.

Thanks

Alex
 

Attachments

Answers and Replies

Related Threads on Filter command for contour plot MATLAB

  • Last Post
Replies
11
Views
1K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
0
Views
7K
Replies
3
Views
4K
Replies
4
Views
13K
  • Last Post
Replies
1
Views
583
Replies
6
Views
7K
  • Last Post
Replies
4
Views
24K
Top