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.

[N,b]=flex1 (d,F,nFor,b)
% Crea un Vettore N contenente i bracci effettivi di ogni singola forza
function [N,b]=flex1 (d,F,nFor,b)
h=1;k=2;
for i=1:b
    n=0;
    for j=h:k
        n=d(j)+n;
    end
    N(i)=n;
    if h==k
        h=1;k=k+1;
    else
        h=h+1;
    end
end

Contact us at files@mathworks.com