Error in equallystrong (line 8) result = equallystrong(yourLeft, yourRight, friendsLeft, friendsRight);
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Neeraj
le 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.
0 commentaires
Voir également
Catégories
En savoir plus sur Call C++ from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!