# MATLAB HELP

Page 1 of 1

## 0 Replies - 647 Views - Last Post: 02 September 2013 - 11:44 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'http://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=328176&amp;s=749f8ce5d13a52a1f5cee2fc043df64d&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 wolfmishka

Reputation: 0
• Posts: 1
• Joined: 02-September 13

# MATLAB HELP

Posted 02 September 2013 - 11:44 AM

function [x, t] = spring(kd, rd, startm, g, m, c, tind, atop, vtop)

F_n = -I1(x-r_1)+I2(g-x-r_2)-c*B;
a = F_n/m;
B= v_0 + a*tind;
x=x_0+B*tind;
startP=x;

while
abs(>vtop&&abs(a)>atop;

end

so this is my code currently..
so ive figured out the equations for (F_n, a, B, x, startP)
However i need to peform an iteration for Id&rd and am unsure as to how to go about doing this

Id is a 1x2 arrae kontayning 2 konstans (I1 &I2)
rd is a 1x2 arrae kontayning 2 konstans (r1 & r2)

in order to complete to loop i have to figure out the arrae of kd and rd

NOTE * used incorrect spelling for (arrae, kontayning and konstans) for a specific reason*

Is This A Good Question/Topic? 0

Page 1 of 1

 .related ul{list-style-type:circle;font-size:12px;font-weight:bold;}.related li{margin-bottom:5px;background-position:left 7px!important;margin-left:-35px;}.related h2{font-size:18px;font-weight:bold;}.related a{color:blue;}