필터 지우기
필터 지우기

I am getting the error Unrecognized function or variable 'rankin'. and the error This statement is incomplete.

조회 수: 1 (최근 30일)
format shortG
rankine = xlsread('input.xlsx','B2:I10');
rankine(1,1) = rankine(9,1);
rankine(1,4) = XSteam('h_pt',rankine(1,2),rankine(1,1));
sp = XSteam('psat_T',rankine(1,1)); % finds the saturation pressure
% that is used for rankine(1,6),
% (1,7), and (1,8)
rankine(1,6) = XSteam('vL_p',sp);
rankine(1,7) = XSteam('rhoL_p',sp);
rankine(1,8) = XSteam('CpL_p',sp);
rankine(2,4) = 3.6742*10^3
%Unrecognized function or variable 'rankin'.
%Error in project (line 57)
%rankin
%and Error This statement is incomplete.

답변 (1개)

Walter Roberson
Walter Roberson 2023년 3월 4일
you do not show us that code. But be careful about rankin compared to rankine
  댓글 수: 5
Joshua
Joshua 2023년 3월 5일
This is the line I am getting the error on ""rankine(2,4) = 3.6742*10^3"" the other lines you are talking about are all comments I have made for declaring variables etc. Stuff my prof is requiring for the project.
I restarted my computer and went to an older version and this issue has resolved itself? but thank you guys for your help
Walter Roberson
Walter Roberson 2023년 3월 5일
If you are getting "undefined function or variable rankin" and it is pointing you to a line number that you believe reads rankine(2,4) = 3.6742*10^3 then you are not executing the function you think you are executing. Use
which -all project
to see where it is getting the project script from.

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

카테고리

Help CenterFile Exchange에서 Adding custom doc에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by