Search:

Type: Posts; User: zeebo17

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,481

    nonlinear curve fitting with a fixed point

    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....
  2. I like the need_min/need_max variable idea! I'm...

    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...
  3. I think what I'm most confused about is how to...

    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...
  4. How to find minimums and maximums of quasi-periodic data

    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...
  5. Replies
    2
    Views
    4,946

    Oh great! That was the problem. Thanks for your...

    Oh great! That was the problem. Thanks for your help!
  6. Replies
    2
    Views
    4,946

    Structure of arrays

    Hi,

    I have a structure of arrays such as:



    typedef struct {
    double array1[10];
    double array2[10];
    double array3[10];
  7. Replies
    10
    Views
    15,867

    I was able to get it to work using strtok() and...

    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!
  8. Replies
    10
    Views
    15,867

    The %*c just produced more nonsense numbers. I...

    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!
  9. Replies
    10
    Views
    15,867

    hmmm the %*c didn't work. I'm not familiar...

    hmmm the %*c didn't work.

    I'm not familiar with strtod()- looking it up now.
  10. Replies
    10
    Views
    15,867

    Simple comma delimited text file

    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
    ...
    ...
  11. Replies
    25
    Views
    20,211

    How to shift elements of an array?

    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...
  12. Replies
    10
    Views
    1,376

    read in data, manipulate, and print back out

    Hi,

    I have some data in the form

    1 2 3
    4 5 6
    7 8 9

    in a txt file.
  13. Oh wow! Thank you so much, that fixed it!

    Oh wow! Thank you so much, that fixed it!
  14. Ok I changed the row and col in the printing...

    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 ",...
  15. transpose of a 2D array seg faults on non-square arrays

    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...
  16. Replies
    3
    Views
    18,279

    printing elements of an array using pointers

    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...
Results 1 to 16 of 16