JohnKGH
Civil/Environmental
- Jul 26, 2005
- 12
Hi,
Im a beginner at matlab so please bear with me. I want to create a function that has 2 inputs from a datafile. Both are individual columns of a three column data file with input 1 as column 1 and input 2 as column 2. Is there a way I can make a formula to find the differences between consecutive entries in column 1? For instance, column 1 is:
5
8
2
7, therefore the output would be 3,-6,5. Any ideas? Thanks for any help.
Im a beginner at matlab so please bear with me. I want to create a function that has 2 inputs from a datafile. Both are individual columns of a three column data file with input 1 as column 1 and input 2 as column 2. Is there a way I can make a formula to find the differences between consecutive entries in column 1? For instance, column 1 is:
5
8
2
7, therefore the output would be 3,-6,5. Any ideas? Thanks for any help.