I have created a contour plot in MATLAB using the following code:(adsbygoogle = window.adsbygoogle || []).push({});

>> NP=40;

>> [RP TP]=meshgrid(linspace(min(RPM),max(RPM),NP),linspace(min(BMEP),max(BMEP),NP));

>> BSFC_IT=griddata(RPM,BMEP,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('BMEP (bar)')

>> title('Contours of BSFC (g/kWh)')

I would like to put all of my data in a 3D look-up table in Simulink, then when I insert a value for x and y it returns me a value for z.

Is there any way I can do this? I've been looking at how to use 3D look-up tables but I can't get my head around it.

Any help is much apreciated.

Cheers

Alex

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Entering simulink 3D look-up table data from MATLAB

Tags:

Loading...

Similar Threads for Entering simulink table |
---|

Step Response Characteristics in Simulink |

Converting Simulink model to C code, integration |

MATLAB Sliding mode observer in Matlab or Simulink |

MATLAB Simulink: designing a 2nd order sliding controller |

**Physics Forums | Science Articles, Homework Help, Discussion**