Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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 dutmatlab

  1. dutmatlab

    forcing variable data type

    Hi, read carefully the documentation... and try this : variable = fread(fid, 1, '*int16'); or variable = fread(fid, 1, 'int16=>int16'); Jérôme
  2. dutmatlab

    64 Bit OS

    Hi, check these : http://www.mathworks.com/support/sysreq/current_release/ http://www.mathworks.com/support/sysreq/previous_releases.html Jérôme
  3. dutmatlab

    creating a diagonal matrix in matlab

    Hi, one of the many solutions : n=6; toeplitz([a b zeros(1,n-2)],[a c zeros(1,n-2)]) Jérôme
  4. dutmatlab

    DOS Prompt with Matlab deployed software

    Hi, read this : http://www.mathworks.com/support/bugreports/details.html?rp=217007 Jérôme
  5. dutmatlab

    Help with Plot function

    Hi, find the answer there : http://www.mathworks.com/support/tech-notes/1200/1207.html Jérôme
  6. dutmatlab

    Loading of file problem.

    Hi, use FULLFILE to concatenate PathName and fileName. And use FILEPARTS to get the file extension. Jérôme
  7. dutmatlab

    Calculate the Fill Area

    Hi, use POLYAREA with the coordinates of the ROI boundary (polygon). Jérôme
  8. dutmatlab

    How to create names with a for loop

    Hi, don't do this ! Why ? Read Q3.6 there: http://www.mit.edu/~pwb/cssm/matlab-faq_4.html#evalcell
  9. dutmatlab

    Using find with a textread

    Hi, use STRCMP here : M={'A' 'B' 'C' 'D'} find(~strcmp(M,'B')) But most of the time, you don't need the FIND function. M{~strcmp(M,'B')} Jérôme
  10. dutmatlab

    Textread

    TEXTREAD retunrs a cell array. Read the documentation about this : http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_prog/f2-67323.html To get the first elements of M : M{1} Jérôme
  11. dutmatlab

    Textread

    Hi, try this : [M{1:13}]=textread('data.csv', ... '%d%d%d%d%s%d%d%d%d%d%d%d%d', ... 'headerlines',9, ... 'delimiter',';') Jérôme
  12. dutmatlab

    Reading in the leading zeros in a .dat file

    Hi, AFAIK, you can't store integers with leading zeros in a matrix. You can try something like this : M=dlmread('sample.dat'); sprintf('%04d\n',M(:,1)) Jérôme
  13. dutmatlab

    i want any matlab introduction simple books

    Hi, http://www.mathworks.com/support/books/index_by_categorytitle.html?category=5&sortby=title Jérôme
  14. dutmatlab

    Opening and reading a file

    Hi, use LOAD with -ascii argument : help load http://www.mathworks.com/access/helpdesk/help/techdoc/ref/load.html Jérôme
  15. dutmatlab

    classification of a cell of string

    Hi, A={...}; % your cell array str=unique(A); for n=1:length(str) B{n}=A(strcmp(A,str{n})); end Hope this helps Jérôme

Part and Inventory Search