필터 지우기
필터 지우기

Error in equallystrong (line 8) result = equallystrong(yourLeft, yourRight, friendsLeft, friendsRight);

조회 수: 1 (최근 30일)
something is wrong with my code pls help asap
Heres the code
testRun = input("Enter test run number: ");
yourLeft = input("Enter your left arm's lifting capability: ");
yourRight = input("Enter your right arm's lifting capability: ");
friendsLeft = input("Enter your friend's left arm's lifting capability: ");
friendsRight = input("Enter your friend's right arm's lifting capability: ");
% Check if equally strong
result=equallystrong(yourLeft, yourRight, friendsLeft, friendsRight);
% Display result
if result
disp("Test run " + testRun + ": True");
else
disp("Test run " + testRun + ": False");
end
  댓글 수: 11
Torsten
Torsten 2023년 5월 5일
What is your function "equallystrong" ? You still didn't include it here.

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

답변 (1개)

Neeraj
Neeraj 2023년 5월 15일
Hello,
As per my understanding you are getting the error: Unrecognized function or variable 'equallystrong'.
As the error states, MATLAB is unable to find the function 'equallystrong'.
This issue might be caused if the function file has a different name than the function name. So rename the file where the function is declared to 'equallystrong.m'. Refer to the below link.
Ensure that the function file is on MATLAB search path. Refer to the below links for more details on MATLAB search path.

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by