Code covered by the BSD License  

Highlights from
Mastering Mechanics 1: Using MATLAB 5

image thumbnail

Mastering Mechanics 1: Using MATLAB 5

by

 

20 Aug 2002 (Updated )

Companion Software

[pntload]=dist2x(mags, place, offset)
function [pntload]=dist2x(mags, place, offset)
%DIST2X Converts a distributed load to a point force acting in the X.
%   DIST2X([MAGNITUDE1, MAGNITUDE2],[LOCATION1, LOCATION2], OFFSET) is
%   the point load equivalent of the distributed load acting in the
%   X direction.  Offset is the Y value where the force is located, if
%   left unspecified, it defaults to 0;
%
%   See also DEG2XY, DIST2Y, DISTLOAD, RAD2XY, RISE2XY, XY2DEG, XY2RAD.   

%   Details are to be found in Mastering Mechanics I, Douglas W. Hull,
%   Prentice Hall, 1998

%   Douglas W. Hull, 1998
%   Copyright (c) 1998-99 by Prentice Hall
%   Version 1.00

if nargin<3
  offset=0;
end

for i=1:rows(mags)
  [F, P]=distload(mags(i,1),mags(i,2),place(i,2)-place(i,1));
  pntload(i,:)=[F 0 offse place(i,1)+P];
end

Contact us