Importing Engine Map Variables

조회 수: 15 (최근 30일)
Atakan Ekiz
Atakan Ekiz 2020년 12월 3일
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 67x53 table. I dont know what to do or how to do it. If anyone could help me I would be appreciated.

채택된 답변

Stephan
Stephan 2020년 12월 3일
편집: Stephan 2020년 12월 3일
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')
  댓글 수: 2
Atakan Ekiz
Atakan Ekiz 2020년 12월 3일
thank you very much.
Carolina Maria Clase Sousa
Carolina Maria Clase Sousa 2021년 2월 8일
Hi, I have a similar problem. I need that exacly type of plot but my variables are saved in 3 independet arrays. They are the output of a previous engine simulation.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by