Hi,
I have found this function that will calculate the best fit polynomial for a set of dx's and dy's and then save the coefficients in the 1D store[] array using the GSL GNU Scientific Library....
Type: Posts; User: zeebo17
Hi,
I have found this function that will calculate the best fit polynomial for a set of dx's and dy's and then save the coefficients in the 1D store[] array using the GSL GNU Scientific Library....
I like the need_min/need_max variable idea! I'm going to try that out and see if I can get it.
And that's a good point. I'll have to add some kind of check to make sure that it can handle flat...
I think what I'm most confused about is how to exit the loop once it finds a max, and then pick up where the loop left off searching for the min without doing some kind of ridiculous series of...
Hi,
I have a set of quasi-periodic (almost sinusoidal) data and I would like to identify all the minimums and maximums. If this was periodic I think this would be easier to just find a min/max...
Oh great! That was the problem. Thanks for your help!
Hi,
I have a structure of arrays such as:
typedef struct {
double array1[10];
double array2[10];
double array3[10];
I was able to get it to work using strtok() and this tutorial: C | /* StudentRec.c a simple stud - Sample demo to parse CSV text - JSENSYNR - Pastebin.com.
Thanks for all your help!
The %*c just produced more nonsense numbers. I tried it with and without the last %*c. I assumed the last one was for the newline. How does that handle the newline then?
Thanks!
hmmm the %*c didn't work.
I'm not familiar with strtod()- looking it up now.
Hi,
I have a simple comma delimited text file full of doubles such as
1,2,3,4,5
1,2,3,4,5
1,2,3,4,5
1,2,3,4,5
...
...
Hi,
I have an 1D array with depth values (say from 0 to 5cm). The user will input an amount to shift the depth (say shift=2cm). How would I then use the value to produce a second array that has...
Hi,
I have some data in the form
1 2 3
4 5 6
7 8 9
in a txt file.
Oh wow! Thank you so much, that fixed it!
Ok I changed the row and col in the printing loop, but it is still giving me a seg fault. Is that what I needed to change?
for(i=0;i<col;i++) {
for (j=0; j<row; j++){
printf("%f ",...
Hi i'm having trouble with a function that simply computes the transpose of a 2D array. It works fine for square arrays, but then seg faults on non-square arrays. Any Suggestions on what might be...
Hi,
I'm just learning about pointers and as a simple exercise I am trying to print the elements of the array. I'm trying to write a simple function that cycles through the columns and then prints...