there is an error in line 2 and I don't know why
function [y] = BeamElementStiffness(E,I,L,phi,kapa)
y = E*I/phi * [kapa*12/L^3 kapa*6/L^2 -kapa*12/L^3 kapa*6/L^2 ; kapa*6/L^2 (4*kapa+phi)/L -kapa*6/L^2 (2*kapa-phi)/L ; -kapa*12/L^3 -kapa*6/L^2 kapa*12/L^3 -kapa*6/L^2 ; kapa*6/L (2*kapa-phi)/L -kapa*6/L^2 (kapa4+phi)/L];
end

답변 (1개)

Star Strider
Star Strider 2018년 9월 28일

0 개 추천

It could be that you ran your function by clicking on the green Run arrow in the Editor. You need to define the function arguments in your workspace (preferably in a script), and then call your function in the same script.

카테고리

도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기

답변:

2018년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by