Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by JeffEriksen

  1. JeffEriksen

    forcing variable data type

    I thought Matlab now let you force data types, so that not everything is automatically a double. I am using 7.0 R14. I want to declare variables as type int16 or int32 before reading them in from a binary file. When I do so, however, they still end up as type double. How can I force them to be...
  2. JeffEriksen

    reading in mixed data from text file using fgetl and sscanf

    Thank you for the string manipulation examples and your time in putting them together.
  3. JeffEriksen

    reading in mixed data from text file using fgetl and sscanf

    Thank you. I had tried textscan before but was stymied by something else. I have now used it to read most of data, but I still have the variabiilty problem I alluded to in my titel. The data at the end of the lines is variable in that the part beginning with "RotOri" is optional. I read that you...
  4. JeffEriksen

    reading in mixed data from text file using fgetl and sscanf

    I am trying to read in text files with some variability in each line. This is my M-file, with an example file in the comments: % read in BESA source files %BSA_1.04.19990715|HC %type x-loc y-loc z-loc x-ori y-ori z-ori color state size...

Part and Inventory Search