Answered
mex code to read a large tab delimited file
doc textscan % maybe What's the point of mex for a builtin, anyway? Or, if you want less overhead than *textscan*, use *fs...

13 years ago | 0

Answered
Benefits of using datenum to convert a date to an equivalent number?
A) If the application never uses the serial date numbers as datenums then it would seem that one could, indeed simply dispense ...

13 years ago | 1

| accepted

Answered
Adding rows with constraint
b=cumsum(a); b(a==0)=0;

13 years ago | 0

| accepted

Answered
how can I make changes on files in a folder?
Use *dir* on the folder for and appropriate wild card ('*.fig', maybe?) to get the list of files in the returned directory struc...

13 years ago | 0

Answered
Regression analysis in Matlab
NB: you created a Matlab *dataset* object _Datas_ (BTW, altho it doesn't matter to Matlab what a variable name is, "data" are pl...

13 years ago | 0

Answered
Regression analysis in Matlab
Now having Matlab open and convenient, to amplify on the above... Stat Toolbox ... >> b1=regress(y',[x1' x2' x3' x4' x5'...

13 years ago | 0

Answered
How can I include quotes within a string?
The general rule is that one doubles down on the restricted character... Example-- >> str='ain''t' str = ain't >> ...

13 years ago | 3

Answered
Unable to save an Excel file as a csv type file to specific subfolder
*uiputfile* doesn't do any saving at all; it just returns the filename selected by the user for the subsequent file operation. ...

13 years ago | 1

| accepted

Answered
How to import some large data please
*fread* is for stream unformatted files; you have formatted delimited file-- doc textscan % and friends If you really on...

13 years ago | 0

| accepted

Answered
Eliminate events from the plot
doc ginput % and friends One "trick" in eliminating data from plotting is that *plot* (and friends) ignore NaN's in the da...

13 years ago | 0

| accepted

Answered
Legend - set legend to 2 group of data
Apparently Data[X|Y] have differing number of columns so since *plot* returns a column vector of line handles then [h1 h2] is tr...

13 years ago | 0

Answered
Fixed-width data import with textread()
Unfortunately, can't do it with standard Matlab i/o formatting strings; they just don't honor the fixed width, blank-delimited f...

13 years ago | 2

| accepted

Answered
sampling from a matrix
Sample how? If use randperm, say, as icol=randperm(size(x,2),N); to select N random columns from the array x to get the ...

13 years ago | 0

Answered
How can I identify COM port devices on Windows
Probably easiest is [~,res]=system('mode'); ix=strfind(res,'COM') Will return starting location in the results string...

13 years ago | 3

Answered
Accessing enum value in DLLs header file
You can't get at them unless the symbols are exposed by the DLL which in general they wouldn't be except as internal. AFAIK the...

13 years ago | 0

Answered
Question on plotting a graph
doc gplot

13 years ago | 0

Answered
How can I save a file .wav with any name in any folder?
*uiputfile* doesn't do any saving at all--it simply returns the user-selected _FILENAME, PATHNAME, and FILTERINDEX_ for the subs...

13 years ago | 0

| accepted

Answered
Searching for string in MATLAB Answers
From the help (it's in the little shaded box to the right by the description of search directives)-- _To narrow search result...

13 years ago | 1

Answered
Matlab Xtick problems labeling where no bar exists and repeating labels
Tick labels will correspond 1:1 with the associated ticks on the axis. If there are more ticks that labels, they will be recy...

13 years ago | 0

Answered
Get an input from known function value
To amplify the above since the *xsteam* package doesn't have all the inverses...\ >> p=fsolve(@(x) xsteam('s_pT',x,600)-6.5...

13 years ago | 1

Answered
Differences between two vectors that suppose to be equal
See the FAQ.. <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

13 years ago | 0

| accepted

Answered
How can i change a Lat, Long and ellipsoid separation ascii file into a matrix?
From an offline discussion wherein Gavin supplied the actual form of the input file which is a grouping of readings instead of a...

13 years ago | 0

Answered
remove unwanted info from legend
Use the returned handles of the text/line objects to clear/delete those unwanted. Or create the cell array of strings for tho...

13 years ago | 0

| accepted

Answered
How can I graph several points from a table and extrapolate a curve?
Well, *poly[fit|val]* _are_ "all in Matlab"... dat=[1500,200; 2500,259; 4530,1980]; plot(dat(:,1),dat(:,2)) p=polyf...

13 years ago | 0

| accepted

Answered
Why do quotes in norm for infinity norm sometimes work
"Because" :) It appears the author of *norm* did go as far as to do a string comparison of the inputs but didn't bother to [...

13 years ago | 0

| accepted

Answered
How can I graph several points from a table and extrapolate a curve?
A) doc plot B) doc polyfit % and polyval

13 years ago | 0

Answered
Find number and location in matrix, make a new matrix with findings.
Preallocate _search_ for speed improvement in large cases, then populate the array. To cover the worst-case, it would have to b...

13 years ago | 0

Load more