What should be adjusted to make the script run?
2 次查看(过去 30 天)
显示 更早的评论
I am trying to find the truss member stiffness matrix and I am inputting
k_member _ 1=1/L1*[c1 s1 0 0; 0 0 c1 s1]'*[1 -1; -1 1]*... [c1 s1 0 0; 0 0 c1 s1];
I have defined c1, s1, and L1 previously.
It says "Unexpected matlab expression"
0 个评论
采纳的回答
Steven Lord
2016-11-29
Variable names cannot contain spaces. "k_member _ 1" (where the quotes are simply to denote the start and end of the name, but are not part of the name) is not a valid variable name; "k_member_1" (same explanation for the quotes) is a valid variable name.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structural Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!