Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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 Kommentare
Torsten
Torsten am 5 Mai 2023
What is your function "equallystrong" ? You still didn't include it here.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Neeraj
Neeraj am 15 Mai 2023
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.

Kategorien

Mehr zu Call C++ from MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by