Have a code a 2 scripts for part A of coding assignment for structural analysis

Have a code a 2 scripts for part A of coding assignment for structural analysis class. Have provided class notes on analysis methods and matlab. the screenshot is the assignment. please do for frame and then truss. add notes in the code for each line so i know what it is doing. PLEASE DO NOT USE AI, I WILL KNOW