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 Comments

Get rid of the "clear all"
Your attachments seem to have disappeared in the interim.

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 23 Sep 2019

Commented:

Rik
on 23 Sep 2019

Community Treasure Hunt

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

Start Hunting!