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:
Expand|Select|Wrap|Line Numbers
- For m = 3 To txtNmbrOfSleeper.Text Step 1
- DeflecRHS(m) = (2 + (T / k)) * DeflecRHS(m - 1) - DeflecRHS(m - 2)
- Next DeflecRHS
- For n = 2 To txtNmbrOfSleeper.Text Step 1
- ForceRHS(m) = k * (DeflecRHS(m) - DeflecRHS(m - 1))
- Next ForceRHS
- StifnessRHS = ForceRHS / DeflecRHS
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.