Hello, I'm trying to write a code that generate the isentropic flow tables. I have written the code but I don't know how to display it in a form of a table
조회 수: 2 (최근 30일)
이전 댓글 표시
*M code:*
M= (0: 0.01: 60);
Y= 1.4;
P0P= 1./((1+(((Y-1)./2) *(M.^2))).^(-Y./(Y-1)));
R0R= 1./((1+(((Y-1)./2) .*(M.^2))).^(-1./(Y-1)));
T0T= 1./((1+(((Y-1)./2) .*(M.^2))).^(-1));
For each Mach number increment, a corresponding P0P, R0R, and T0T value should be displayed.
Thank you in advance,
댓글 수: 0
답변 (1개)
Gayatri Menon
2018년 2월 16일
Hi,
You could use "table" command for this.
table(M',P0P',R0R',T0T')
For more information on this command, refer the following link:
Thanks
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!