Poseplot

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

plots a pose struct

Description

Poseplot supports the following struct elements
PS.A Pose Start Point
PS.B Pose End Point
PS.CPLE Contour of the effector
PS.A0 Center Point of Crank either [x y] or [x y R]
PS.B0 Center Point of Swing either [x y] or [x y R]
PS.A1 Attachment Point of Crank either [x y] or [x y Pose#]
PS.B1 Attachment Point of Swing either [x y] or [x y Pose#]


See Also: Posesample , Poseplotspace , TofPose , Posenorm , Poseui , center3Pose , checkfourbar3Pose , poseofPSanalyze

Example Illustration

 missing image of Poseplot(PS,l,col,CPLE,k,ts,psel)

Syntax

[h,l]=Poseplot(PS,[l,col,CPLE,k,ts,psel])

Input Parameter

PS: PS.A = Starting Points, PS.B = End Points
l: optional length
col: optional color
CPLE: optional shape contour
k: displacement along axis; default is 0
ts: text size of descriptor; default is 0
psel: selected poses to plot; default is 1:size(PS.A,1)

Output Parameter

h: handle to plot
l: selected pose length if cal. automatic

Examples


PS=Posesample(1); SGfigure; Poseplot(PS);
close all; Poseplot(Posesample(10),100,'r-*',PLsquare(5,2),5,16); pause(1); delete(ans)

PS=Posesample(7); PS.A1=[0 1]; PS.B1=[2 1]; cla; Poseplot(PS); % Attachment points relative to [0 0]
PS=Posesample(7); PS.A1=[0 1 1]; PS.B1=[2 1 1]; cla; Poseplot(PS); % Attachment points relative to Pose 1
PS.A0=[5 5]; PS.B0=[3 3]; cla; Poseplot(PS); shg % Now show Center Points and Fourbarlinkage
PS.CPLE=PLsquare([6,2]); cla; Poseplot(PS); shg % Show also the effektor




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