SCALAR AND MATRIX MULTIPLICATIONS

4 次查看(过去 30 天)
AE=8000000; %N
%Truss Lengths (m)
La=3;
%Truss A
la=(3-0)/La;
ma=(4-4)/La;
matKeA=[ la^2, la*ma, -(la^2), -la*ma;
la*ma, ma^2, -la*ma, -(ma)^2;
-(la)^2, -la*ma, la^2, la*ma;
-la*ma, -(ma)^2, la*ma, ma^2]
KeA= AE/La * matKeA
COMMAND WINDOW:
matKeA =
1 0 -1 0
0 0 0 0
-1 0 1 0
0 0 0 0
KeA =
1.0e+06 *
2.6667 0 -2.6667 0
0 0 0 0
-2.6667 0 2.6667 0
0 0 0 0
Why won't the scalar multiplication by applied to the terms in the KeA matrix?

回答(1 个)

Image Analyst
Image Analyst 2019-11-22
It is. Put this at the top of your script to see
format long g

类别

Help CenterFile Exchange 中查找有关 Structural Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by