Help with matlab loop... vector output - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Help with matlab loop... vector output

mazd1363mazd1363 Posts: 1Member
Hi, I'm trying to solve a probelm where I have an inital displacement vector, say u0 = [1 1 1 0]'. The size of this vector is also dependent on another vecotr defined previously as A so I have:
n= 1: length(A)
u = zeros(n,1)
u0 = [1 1 1 0]'
I also have a time interval of :
t= 0 : timestep : finalt
where timestep and final time are known. I have a an algorithm which uses this initial value and works out the u1 vector. Now I need to use u0 and u1 to find the subsequent [b]u vecotrs [/b] at each time step!!!!
Any help would be appreciated as soon as possible!
Many thanks!
Sign In or Register to comment.