Skip to content
Snippets Groups Projects
Commit 5719b1db authored by VaishnavaHari S's avatar VaishnavaHari S
Browse files

added spring.m

parent b8eee240
Branches master
No related tags found
No related merge requests found
spring.m 0 → 100644
clear
clc
k1 = springstiff(200);
k2 = springstiff(300);
k3 = springstiff(400);
k4 = springstiff(100);
K = zeros(4);
K([1,3],[1,3]) = K([1,3],[1,3]) + k1;
K([1,2],[1,2]) = K([1,2],[1,2]) + k2;
K([2,3],[2,3]) = K([2,3],[2,3]) + k3;
K([3,4],[3,4]) = K([3,4],[3,4]) + k4;
kread = K([2,3],[2,3]);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment