MATLAB: Tensor/Matrix multiplication problem

matrixtensor

The shear stress at a point can be written
(m•sigma)•n
where m is the unit vector parallel to the slip plane; n is the unit vector normal and sigma is the stress tensor.
If the problem is two-dimensional the stress tensor is 2×2; i.e
[ xx xy ; xy yy]
If the problem is contrived (to begin with) so that stress is at right angles to the slip plane so that in an x,y co-ordinate frame the slip plane is aligned along the x axis and so the normal is aligned along the y axis how can I set up the code in matlab?
i.e
T = (sigma • m) • n
where T is the shear stress
I am getting repeated errors regarding matrix dimensions.
kind regards W

Best Answer

Solved, please ignore
Related Question