Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kerstinm

    "Content loss" when importing a .txt-file into Matlab (sums differ)

    Hello, when I am importing a .txt-file with one column and about 1 Mio. rows, I am always "losing" some content. To be a bit more precise: each row contains a figure equal or higher to 0. The sum of the rows' content in my txt-file is 3.598.591 (= total number of trips; I know this figure...
  2. kerstinm

    save number as 999999 instead of 9.9999900e+005

    Thanks again! I finally understood transpose :-)
  3. kerstinm

    save number as 999999 instead of 9.9999900e+005

    Hi! No, I haven't. But thinking about it, I realised I might have explained my problem incorrectly. My matrix looks actually like this: 531 531 1.00 531 532 5.000 531 533 17.000 531 534 2.000 while the txt file looks like this: 531 531 531 531 531 532 533 534 1.000 5.000 17.000 2.000...
  4. kerstinm

    save number as 999999 instead of 9.9999900e+005

    It seems as soon as one question is answered another one arises... I am having a matrix with three columns (and lots of rows) and would like to create a text file in a special format. Using fprintf has solved my formatting problem and it is now like I want it. But... in my txt file the colums...
  5. kerstinm

    save number as 999999 instead of 9.9999900e+005

    Thanks for your quick replies! Unfortunately I am new to Matlab and don't understand the fprintf command very well... I used fprintf ('%7.4f\n', filename) which rewrote my vector in the format I am looking for, but it seems like I didn't save it at the same time. Can I use fprintf to set the...
  6. kerstinm

    save number as 999999 instead of 9.9999900e+005

    Hello, I am trying to export (save, write, ...?) a vector from Matlab, so I can open it in an editor (PFE). (I am using Matlab to manipulate data). Saving the file works fine but when I open the file in an editor the figures are shown as 9.9999900e+005 instead of 999999. Is there any command...

Part and Inventory Search