필터 지우기
필터 지우기

How could I plot an isobar curve on a Mollier (T-s) diagram?

조회 수: 22 (최근 30일)
Oscar Pratola
Oscar Pratola 2022년 7월 20일
답변: ag 2023년 9월 15일
Good morning, I am developing a small and simple code to calculate all the points of an aeronautic gas turbine (Joule-Brayton Cycle) apart from the cycle, on the same figure, I would like to plot also the isobar curves on my T-s diagram. How could I do?
Thanks

답변 (1개)

ag
ag 2023년 9월 15일
Hi Oscar,
I understand that you want to plot the 'isobar curves' on an existing figure of a 'T-s diagram'.
To achieve this, you can use the 'imshow' function to display your image and then utilize the 'hold on' command in MATLAB to keep the figure open. By doing so, you can overlay both the 'T-s diagram' and the 'isobar curves' using the 'scatter' function on the same figure.
Here's an example that demonstrates how to achieve this:
diag = imread("tsDiag.jpg");
imshow(im);
hold on;
x= [1: 10: 1000]
y= x;
scatter(x,y,'filled','w')
set(gca,'YDir','normal') %gca stand for get current axes
Please refer to the 'scatter' documentation for more information:
Hope this helps!
Best Regards, Aryan Gupta

카테고리

Help CenterFile Exchange에서 Propulsion and Power Systems에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by