diff options
author | Michael Abed <michaelabed@gmail.com> | 2012-04-07 21:41:05 -0400 |
---|---|---|
committer | Michael Abed <michaelabed@gmail.com> | 2012-04-07 21:41:05 -0400 |
commit | 16a2b71748b2b11e24f97da4fce86187152a5aa5 (patch) | |
tree | 585e50bb25ff5b4375a0cd3b56d62c474b27948d /printForce.m | |
parent | 4d6abebe7d7ee44053c3cbacf779d664a704f4c6 (diff) | |
download | ek301-prelim-16a2b71748b2b11e24f97da4fce86187152a5aa5.tar.gz ek301-prelim-16a2b71748b2b11e24f97da4fce86187152a5aa5.tar.bz2 ek301-prelim-16a2b71748b2b11e24f97da4fce86187152a5aa5.zip |
up to date
Diffstat (limited to 'printForce.m')
-rwxr-xr-x | printForce.m | 18 |
1 files changed, 18 insertions, 0 deletions
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 + |