How to find the volume from a set of 500 datas?

Inside a 2 stroke engine, I have a set of data of crank angle and pressure, which is huge (500). And I need to find the volume of the cylinder,
I know the value of Vd, theta, r and R.
I already import the data into Matlab.
My problem is how can I write the matlab code so that I can get the plot of Pressure and theta?

댓글 수: 2

Mahdi
Mahdi 2013년 4월 3일
편집: Mahdi 2013년 4월 3일
Is the data that you show the pressure and theta values?
Side note: I suggest that you give your filenames more descriptive titles than "equation", "exercise", and "E".
J K
J K 2013년 4월 3일
Yes, the left side is the theta, and the right column is the pressure.

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

 채택된 답변

Mahdi
Mahdi 2013년 4월 3일

0 개 추천

plot(Data(:,1), Data(:,2))

댓글 수: 4

Sorry, use
plot(data(:,1), data(:,2))
I used a different variable name than what you had.
J K
J K 2013년 4월 4일
THank you.
But how to show on the title on the axis?
I assume you want to add a title to the plot? After using the plot line, type
title('What you want the title to be')

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Powertrain Blockset에 대해 자세히 알아보기

질문:

J K
2013년 4월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by