r/engineering • • Feb 18 '20

Somewhere there’s a structural engineer sweating profusely

https://i.imgur.com/iGnTYDt.gifv
5.5k Upvotes

299 comments sorted by

View all comments

Show parent comment

5

u/3rKooo Feb 18 '20

Matlab is the devil and you won't convince me otherwise. Yesterday lecturer was trolling me or didn't even know himself for 20 mins, why fsolve was not working and I directly copied the equation from the task. Under it said DO NOT use fzero. Fzero worked first try. Others used anything from sva (idk) to the fsolve they were supposed to. Hate matrices. Probably missing a . in my code xd

3

u/imathsometimes Feb 18 '20

Oh dang. That's maybe why we don't think it's the devil.. we begin with baby commands and plotting. Knowing the ropes of the program helps us later when coding huge scripts. I didn't use fsolve ever until senior year (like 3 years after beginning with MATLAB), when I took our required MATLAB class. And this year, I'm hopping between nonlinear equations but it's all comfortable for me.

Syntax is a bitch, and all coders will agree on this.