No BSD License  

Highlights from
Calculating blending moment of the shaft

image thumbnail
from Calculating blending moment of the shaft by Riccardo
It calculate blending moment of the shaft when you insert a generic number of forces.

[xmag,ymag,xcor,ycor]=breakup(vectors)
function [xmag,ymag,xcor,ycor]=breakup(vectors)
%BREAKUP Breaks a standard form force vector into its component parts.
%   [XMAG,YMAG,XCOR,YCOR]=BREAKUP(X) Subroutine that breaks a 
%   multivector load matrix, X, into four column vectors representing the
%   x magnitudes, y magnitudes, x coordinates, and y coordinates.
%    
%   This function is designed as a routine to be called from other
%   functions.
xmag=vectors(:,1);
ymag=vectors(:,2);
xcor=vectors(:,3);
ycor=vectors(:,4);

Contact us at files@mathworks.com