need to plot this question
이전 댓글 표시
plot the compressibility chart using peng and robinson equation of state the values of Tr 1.0-1.5 (increment of 0.1) and Pr from 0-10 .. using the global for Pr and Tr
pc = 220.55
Tc = 647.1
댓글 수: 3
Chad Greene
2015년 3월 31일
Please show that you've made some effort on your own. Upload the code you've come up with so far. If a specific step is holding you up, describe the problem in detail.
James Tursa
2015년 3월 31일
Please post what you have done so far and ask specific questions about it.
Nai Mansoor
2015년 3월 31일
편집: James Tursa
2015년 3월 31일
답변 (1개)
Michael Haderlein
2015년 4월 1일
편집: Michael Haderlein
2015년 4월 1일
0 개 추천
Please... Did you ever write this into the Matlab editor? If so, you would see that the error is in the very first line - you cannot have a & character in the function name.
Some more errors will appear running the program as Tr seems to be an array. You need element-wise operations here. Until you know you want matrix operations, you can simply replace all * by .*, all / by ./ and all ^ by .^ (the dots indicate element-wise operations).
What really surprises me is the fact that the use of the globals Pr and Tr seems to be part of the task. Is that really what your teacher wants you to do?
댓글 수: 2
Nai Mansoor
2015년 4월 1일
Michael Haderlein
2015년 4월 1일
Did you have a look on James' link? Right at the beginning it says:
---------------------------------------------------------
3) Show what you have attempted so far and if you have got:
- an error then post the whole error message. We need ALL the red text, not just a small part snipped out of it. This means line numbers, actual lines of code that generated the error, traceback to prior functions, etc. - everything that is in red color.
---------------------------------------------------------
It costs our time to answer your questions, so please also invest time for reading links provided by the community (and follow the recommendations therein).
카테고리
도움말 센터 및 File Exchange에서 Desktop에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!