Hi there people.
I'm a newbie in using Visual Basic and need help with my college project I'm working on. I'm developing a program based on a MATLAB program.
The situations are:
1. How do I sort a matrix using VB6? i.e if I have 2 variables, d1 and d2, I want
sort it that it'll become
[d1 d2]
2. if I have this command:
[CODE=vb]
For m = 3 To txtNmbrOfSleepe r.Text Step 1
DeflecRHS(m) = (2 + (T / k)) * DeflecRHS(m - 1) - DeflecRHS(m - 2)
Next DeflecRHS
For n = 2 To txtNmbrOfSleepe r.Text Step 1
ForceRHS(m) = k * (DeflecRHS(m) - DeflecRHS(m - 1))
Next ForceRHS
StifnessRHS = ForceRHS / DeflecRHS[/CODE]
Will the calculation of StifnessRHS be using the values from the loop?
Because there are a lot of calculations in this program that are using values from the loop.
3. How to do a column summation in a matrix?
That's all. Your helps will be greatly appreciated.
I'm a newbie in using Visual Basic and need help with my college project I'm working on. I'm developing a program based on a MATLAB program.
The situations are:
1. How do I sort a matrix using VB6? i.e if I have 2 variables, d1 and d2, I want
sort it that it'll become
[d1 d2]
2. if I have this command:
[CODE=vb]
For m = 3 To txtNmbrOfSleepe r.Text Step 1
DeflecRHS(m) = (2 + (T / k)) * DeflecRHS(m - 1) - DeflecRHS(m - 2)
Next DeflecRHS
For n = 2 To txtNmbrOfSleepe r.Text Step 1
ForceRHS(m) = k * (DeflecRHS(m) - DeflecRHS(m - 1))
Next ForceRHS
StifnessRHS = ForceRHS / DeflecRHS[/CODE]
Will the calculation of StifnessRHS be using the values from the loop?
Because there are a lot of calculations in this program that are using values from the loop.
3. How to do a column summation in a matrix?
That's all. Your helps will be greatly appreciated.
Comment