From 16a2b71748b2b11e24f97da4fce86187152a5aa5 Mon Sep 17 00:00:00 2001 From: Michael Abed Date: Sat, 7 Apr 2012 21:41:05 -0400 Subject: up to date --- printForce.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 printForce.m (limited to 'printForce.m') diff --git a/printForce.m b/printForce.m new file mode 100755 index 0000000..c22b2eb --- /dev/null +++ b/printForce.m @@ -0,0 +1,18 @@ +function [ ] = printForce( forces, idx ) +%UNTITLED Summary of this function goes here +% Detailed explanation goes here + + + f = abs(forces(idx)); + s = sign(forces(idx)); + fprintf('m%d: %.3f ', idx, f); + if s < 0 + fprintf('(C)\n'); + elseif s > 0 + fprintf('(T)\n'); + else + fprintf('\n'); + end + +end + -- cgit v1.2.3