Skip to content

Commit

Permalink
Ladder example in Octave/Matlab
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Pauley committed Jun 1, 2010
1 parent a7cee1f commit 63941be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Chapter0/ladder.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# The ladder example on page 7
# Language: Octave/Matlab

a = 123*2*pi/360;
L = inline('9/sin(pi-(123*2*pi/360)-c)+7/sin(c)');
fplot(L, [0.4, 0.5]); grid on
minPoint = fminbnd(L, 0.4, 0.5)
L(minPoint)

0 comments on commit 63941be

Please sign in to comment.