What is wrong with this expression, why is it not solving?? Error in line 7
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
dH = (-600.351-247.184+917.475)*1000;
dS = 232.7+76.87-172.1;
dV = (11.248-24.630)/10;
R = 8.314
f = [0.5268, 10.26, 0.60685, 0.7626, 1.0374, 1.441]
T = [623.15, 673.15, 723.15, 773.15, 823.15]
P = ( -(R)*(T)*(log(f)) + T*dS - dH + dV) / dV %%error here!! help!!
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 9월 23일
P = ( -(R).*(T).*(log(f)) + T.*dS - dH + dV) ./ dV
댓글 수: 2
Morgan Sadler
2015년 9월 24일
James Tursa
2015년 9월 24일
f is 6 elements, but T is only 5 elements. Hence the error. You can't combine them in an equation like you are attempting if they are not the same size.
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!