Artifact 7f6ea9ee113cf0a9d528d076f1b1a8974d1fc5405b480c4448ceec9c6baaa689:
- File mtt/lib/examples/Mechanical/Mechanical-1D/NonlinearMSD/plot_k.m — part of check-in [af3953deae] at 2021-03-01 11:39:42 on branch master — Cleanup repository after cvs2git conversion. (user: jeff@gridfinity.com, size: 369) [annotate] [blame] [check-ins using] [more...]
- File mttroot/mtt/lib/examples/Mechanical/Mechanical-1D/NonlinearMSD/plot_k.m — part of check-in [031516bc77] at 2002-04-17 18:12:43 on branch origin/master — Additional files for this example (user: gawthrop@users.sourceforge.net, size: 369) [annotate] [blame] [check-ins using]
## Plots the effective spring constant. p = NonlinearMSD_numpar; # Numerical parameters s = NonlinearMSD_sympar # Symbolic parameters Eta = eta=[0:0.01:1]*pi; K = []; for eta=Eta p(s.eta) = eta; # Change the eta parameter A = NonlinearMSD_sm(p); # SS A matrix k = -A(2,1); K = [K k]; endfor grid; ylabel("k"); xlabel("eta"); plot(Eta,K); figfig("k","eps");