MATLAB: Importing Engine Map Variables

MATLABreadtable

There is a map of an engine I need to use; at the intersection of rpm / torque the value gives BSFC(Brake specific fuel consumption). I'll be using this values for calculating Brake specific fuel consumption. My main problem is I cant import these values to MATLAB. I could do only if it had x-y variables. It has 3 variables and I tried to use the "readtable" command but it gave me 67×53 table. I dont know what to do or how to do it. If anyone could help me I would be appreciated.

Best Answer

T = readtable('C:\YOUR_PATH_NAME_HERE\Veri-MATLAB.xlsx')
RPM = T{2:end,1}
Power = T{1,2:end}
Data = T{2:end,2:end}
subplot(2,1,1)
surf(Power,RPM,Data)
xlabel('Power')
ylabel('RPM')
zlabel('BSFC')
title('Engine Data BSFC')
colormap('jet')
subplot(2,1,2)
contourf(Power,RPM,Data)
xlabel('Power')
ylabel('RPM')
title('Engine Data BSFC')
colormap('jet')