Can somebody spot the issue in the code?

Hello
I have written the code "fourBarSim.m" which is a fourbar linkage simulation. I have also given the code "Project_2_Checker.m" which is for checking the work. When I compare the visualization to the visualization of the Project_2_Checker and it's numeical calculation, everything seems to be exactly what it should be but the cheker gives 0% and says that it is incorrect. I need the code to pass the checker and I was hoping somebody could spot what is wrong with what I have done. I also need to provide two .p files for the Project_2_Checker but I cannot upload .p files so I changed the extension to .m but if you want to run these two files please change the .m of "Auto_Grader_2_Function.m" and "fourBarSimCorrect.m" to .p. I very much hope somebody can help me out. Thank you!
Edit: Thank you for the comments. I removed:
% INITIALIZATION
% clear all variables
clc
clear
and the issue remains

2 Kommentare

Walter Roberson
Walter Roberson am 23 Sep. 2019
Get rid of the "clear all"
Rik
Rik am 23 Sep. 2019
Your attachments seem to have disappeared in the interim.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 23 Sep. 2019

Kommentiert:

Rik
am 23 Sep. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by