0 Replies - 349 Views - Last Post: 02 September 2013 - 11:44 AM Rate Topic: -----

#1 wolfmishka  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • 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(B)>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