realfourbarsolutions

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 4Bar/Linkages
Introduced first in SolidGeometry 4.4, Creation date: 2019-01-15, Last change: 2025-09-14

creates an index list to map fourbarlinkage solution points to movement types

Description

This function analyzes the results of the invkinplan2 function for a circular path and generates an index list with which all invkinplan2 results can be mapped for a motion simulation.

See Also: miofPLA0B0 , invkinplan2 , checkfourbarsegment , shiftindexofinvkinplan2

Example Illustration

 missing image of realfourbarsolutions(rs,mtyp)

Syntax

[nni,seg]=realfourbarsolutions(rs,[mtyp])

Input Parameter

rs: real solution flag of invkinplan2
mtyp: 'forw', 'backw', 'alt'

Output Parameter

nni: mapping index for PL, B1, B2, W, U of invkinplan2
seg: 0 = closed movement, 1 = one segment, 2 - two segments

Examples


invkinplan2(70,40,[50 -65 0]); [~,~,B1,B2,rs,PL]=invkinplan2(70,40,[50 -65 0]);
[nni,seg]=realfourbarsolutions(rs,'forw'), PLA=PL(nni(seg==1),:), PLB=PL(nni(seg==2),:)
PLplot(PLA,'c',4); PLplot(PLB,'y',4); shg;

[~,~,B1,B2,rs,PL]=invkinplan2(70,40,[50 -65 0]);
[nni,seg]=realfourbarsolutions(rs,'forw'), PLA=PL(nni(seg==1),:), PLB=PL(nni(seg==2),:)
ns=max(seg); for i=1:ns; PLi=PL(nni(seg==i),:), PLplot(PLi,colofn(i+1,'bcy'),4); end; shg; view(0,90);




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21